OneSizeFitsQuorum commented on code in PR #1057:
URL: https://github.com/apache/ratis/pull/1057#discussion_r1537036390
##########
ratis-common/src/main/java/org/apache/ratis/util/MemoizedCheckedSupplier.java:
##########
@@ -44,6 +44,8 @@ public static <RETURN, THROW extends Throwable>
MemoizedCheckedSupplier<RETURN,
}
private final CheckedSupplier<RETURN, THROW> initializer;
+
+ @SuppressWarnings({"squid:S3077"}) // Suppress volatile for immutable object
warning
Review Comment:
Fixed
##########
ratis-common/src/main/java/org/apache/ratis/util/MemoizedSupplier.java:
##########
@@ -40,6 +40,7 @@ public static <T> MemoizedSupplier<T> valueOf(Supplier<T>
supplier) {
}
private final Supplier<T> initializer;
+ @SuppressWarnings({"squid:S3077"}) // Suppress volatile for immutable object
warning
Review Comment:
Fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]