rishabhdaim commented on code in PR #1812:
URL: https://github.com/apache/jackrabbit-oak/pull/1812#discussion_r1806363653


##########
oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/conditions/Validate.java:
##########
@@ -119,9 +119,9 @@ public static void checkState(final boolean expression) {
      * @param errorMessage message to use in exception
      * @throws IllegalStateException if expression is false
      */
-    public static void checkState(final boolean expression, @NotNull final 
String errorMessage) {
+    public static void checkState(final boolean expression, @NotNull final 
Object errorMessage) {

Review Comment:
   This is required because in some places the string we pass is not 
initialized until the expression has run.



-- 
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]

Reply via email to