File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
closed/src/java.base/share/classes/openj9/internal/security Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -620,11 +620,11 @@ private static void restrictsCheck() {
620620 int expireMonths = monthsToPolicySunset (restricts .descSunsetDate );
621621
622622 if (suppressSunsetWarning ) {
623- if ((expireMonths = = 0 ) && !ignoreSunsetExpiration ) {
623+ if ((expireMonths < = 0 ) && !ignoreSunsetExpiration ) {
624624 System .exit (1 );
625625 }
626626 } else {
627- if (expireMonths = = 0 ) { // Check if the SunsetDate expired.
627+ if (expireMonths < = 0 ) { // Check if the SunsetDate expired.
628628 if (ignoreSunsetExpiration ) {
629629 System .err .println ("The requested restricted security profile " + restricts .profileID
630630 + " expired on " + restricts .descSunsetDate
@@ -685,7 +685,7 @@ private static int monthsToPolicySunset(String descSunsetDate) {
685685 LocalDate now = LocalDate .now (Clock .systemUTC ());
686686
687687 if (sunsetDate .isBefore (now )) {
688- return 0 ; // already sunset.
688+ return 0 ; // Already sunset.
689689 }
690690
691691 Period period = Period .between (now , sunsetDate );
You can’t perform that action at this time.
0 commit comments