mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 07:13:34 +02:00
Clean up a few lint warnings (#1324)
The build is generating the following lint warnings: core/src/main/java/google/registry/flows/certs/CertificateChecker.java:246: warning: [ReferenceEquality] Compariso n using reference equality instead of value equality && (lastExpiringNotificationSentDate == START_OF_TIME ^ (see https://errorprone.info/bugpattern/ReferenceEquality) core/src/test/java/google/registry/backup/ReplayCommitLogsToSqlActionTest.java:350: warning: [UnnecessaryParenthes es] These grouping parentheses are unnecessary; it is unlikely the code will be misinterpreted without them .that(jpaTm().transact((() -> jpaTm().loadByEntity(contactResource))))
This commit is contained in:
parent
1d14e96c9b
commit
93b4b03322
2 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ public class CertificateChecker {
|
||||||
* lastExpiringNotificationSentDate is greater than expirationWarningIntervalDays.
|
* lastExpiringNotificationSentDate is greater than expirationWarningIntervalDays.
|
||||||
*/
|
*/
|
||||||
return !lastValidDate.after(now.plusDays(expirationWarningDays).toDate())
|
return !lastValidDate.after(now.plusDays(expirationWarningDays).toDate())
|
||||||
&& (lastExpiringNotificationSentDate == START_OF_TIME
|
&& (lastExpiringNotificationSentDate.equals(START_OF_TIME)
|
||||||
|| !lastExpiringNotificationSentDate
|
|| !lastExpiringNotificationSentDate
|
||||||
.plusDays(expirationWarningIntervalDays)
|
.plusDays(expirationWarningIntervalDays)
|
||||||
.toDate()
|
.toDate()
|
||||||
|
|
|
@ -347,7 +347,7 @@ public class ReplayCommitLogsToSqlActionTest {
|
||||||
mutation);
|
mutation);
|
||||||
runAndAssertSuccess(persistenceTime.minusMinutes(1), 1, 1);
|
runAndAssertSuccess(persistenceTime.minusMinutes(1), 1, 1);
|
||||||
assertAboutImmutableObjects()
|
assertAboutImmutableObjects()
|
||||||
.that(jpaTm().transact((() -> jpaTm().loadByEntity(contactResource))))
|
.that(jpaTm().transact(() -> jpaTm().loadByEntity(contactResource)))
|
||||||
.isEqualExceptFields(contactResource, "revisions");
|
.isEqualExceptFields(contactResource, "revisions");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue