src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilderParameters.java

Print this page
rev 10521 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>


 107      * are built from the target subject to the trusted anchor.
 108      * If false, paths are built from the trusted anchor to the
 109      * target subject. The default value if not specified is true.
 110      *
 111      * @param buildForward the value of the buildForward flag
 112      */
 113     public void setBuildForward(boolean buildForward) {
 114         this.buildForward = buildForward;
 115     }
 116 
 117     /**
 118      * Returns a formatted string describing the parameters.
 119      *
 120      * @return a formatted string describing the parameters.
 121      */
 122     @Override
 123     public String toString() {
 124         StringBuilder sb = new StringBuilder();
 125         sb.append("[\n");
 126         sb.append(super.toString());
 127         sb.append("  Build Forward Flag: " + String.valueOf(buildForward) + "\n");
 128         sb.append("]\n");
 129         return sb.toString();
 130     }
 131 }


 107      * are built from the target subject to the trusted anchor.
 108      * If false, paths are built from the trusted anchor to the
 109      * target subject. The default value if not specified is true.
 110      *
 111      * @param buildForward the value of the buildForward flag
 112      */
 113     public void setBuildForward(boolean buildForward) {
 114         this.buildForward = buildForward;
 115     }
 116 
 117     /**
 118      * Returns a formatted string describing the parameters.
 119      *
 120      * @return a formatted string describing the parameters.
 121      */
 122     @Override
 123     public String toString() {
 124         StringBuilder sb = new StringBuilder();
 125         sb.append("[\n");
 126         sb.append(super.toString());
 127         sb.append("  Build Forward Flag: ").append(buildForward).append('\n');
 128         sb.append("]\n");
 129         return sb.toString();
 130     }
 131 }