File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ public RubyString to_text() {
379
379
StringBuilder result = new StringBuilder ();
380
380
if (privateKey != null ) {
381
381
int len = privateKey .getModulus ().bitLength ();
382
- result .append ("Private-Key: (" ).append (len ).append (" bit)" ).append (" \n " );
382
+ result .append ("Private-Key: (" ).append (len ).append (" bit)" ).append ('\n' );
383
383
result .append ("modulus:" );
384
384
addSplittedAndFormatted (result , privateKey .getModulus ());
385
385
result .append ("publicExponent: " ).append (privateKey .getPublicExponent ()).append (" (0x" ).append (privateKey .getPublicExponent ().toString (16 )).append (")\n " );
@@ -401,7 +401,7 @@ public RubyString to_text() {
401
401
addSplittedAndFormatted (result , publicKey .getModulus ());
402
402
result .append ("Exponent: " ).append (publicKey .getPublicExponent ()).append (" (0x" ).append (publicKey .getPublicExponent ().toString (16 )).append (")\n " );
403
403
}
404
- return getRuntime () .newString (result . toString () );
404
+ return RubyString .newString (getRuntime (), result );
405
405
}
406
406
407
407
@ Override
You can’t perform that action at this time.
0 commit comments