diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/YodaCondition.java b/core/src/main/java/com/google/errorprone/bugpatterns/YodaCondition.java index 4c25fa5b13c..10a63127772 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/YodaCondition.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/YodaCondition.java @@ -51,7 +51,7 @@ summary = "The non-constant portion of a comparison generally comes first. For equality, prefer" + " e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be" - + " null. For standard operators, prefer e > CONSTANT.", + + " null. For standard operators, prefer e CONSTANT.", severity = WARNING) public final class YodaCondition extends BugChecker implements BinaryTreeMatcher, MethodInvocationTreeMatcher {