@@ -638,20 +638,20 @@ private static void restrictsCheck() {
638638 }
639639 } else if (expireMonths <= 0 ) { // Check if the SunsetDate expired.
640640 if (ignoreSunsetExpiration ) {
641- System .err .println ("The requested restricted security profile " + restricts .profileID
641+ System .err .format ("The requested restricted security profile " + restricts .profileID
642642 + " expired on " + restricts .descSunsetDate
643- + ": certified cryptography use cannot be guaranteed."
644- + " Use -Dsemeru.restrictedsecurity.suppresssunsetwarning to stop displaying this message."
645- + " The -Dsemeru.restrictedsecurity.ignoresunsetexpiration option has been specified."
646- + " WARNING: java will start with the requested restricted security profile but uncertified"
643+ + ": Certified cryptography use cannot be guaranteed.%n "
644+ + " Use -Dsemeru.restrictedsecurity.suppresssunsetwarning to stop displaying this message.%n "
645+ + " The -Dsemeru.restrictedsecurity.ignoresunsetexpiration option has been specified.%n "
646+ + " WARNING: Java will start with the requested restricted security profile but uncertified"
647647 + " cryptography may be active." );
648648 } else {
649- printStackTraceAndExit ("The requested restricted security profile " + restricts .profileID
649+ printStackTraceAndExit (String . format ( "The requested restricted security profile " + restricts .profileID
650650 + " expired on " + restricts .descSunsetDate
651- + ": java will stop because certified cryptography use cannot be guaranteed."
652- + " Use -Dsemeru.restrictedsecurity.suppresssunsetwarning to stop displaying this message."
651+ + ": Java will stop because certified cryptography use cannot be guaranteed.%n "
652+ + " Use -Dsemeru.restrictedsecurity.suppresssunsetwarning to stop displaying this message.%n "
653653 + " Use -Dsemeru.restrictedsecurity.ignoresunsetexpiration to allow java to start while"
654- + " possibly using uncertified cryptography." );
654+ + " possibly using uncertified cryptography." )) ;
655655 }
656656 } else if (expireMonths <= 6 ) { // Check if the SunsetDate will expire within 6 months.
657657 System .err .println ("The restricted security profile " + restricts .profileID
0 commit comments