Skip to content

Commit 410a3b9

Browse files
committed
update
1 parent 7faaf30 commit 410a3b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)