Clarify that PreconditionsConstantMessage allows for a template string
@@ -69,6 +69,7 @@ public final class PreconditionsConstantMessage extends BugChecker implements Bu
}
return buildDescription(tree).setMessage(
- "Preconditions.checkX() statement uses a non-constant message").build();
+ "Preconditions.checkX() statement uses a non-constant message. "
+ + "Consider using a template string with '%s'.").build();
}
}
