Skip to content

Commit 4e7a0be

Browse files
committed
Include ternary example in error message
Closes gh-103
1 parent 3c8eb44 commit 4e7a0be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/main/resources/io/spring/javaformat/checkstyle/check/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ methodorder.outOfOrder=Method ''{0}'' is out of order, expected {1}.
1717
methodvisibility.publicMethod=Method ''{0}'' in private class should not be public.
1818
nothis.unexpected=Reference to instance variable ''{0}'' should not use \"this.\".
1919
ternary.equalOperator=Ternary operation should use != when testing.
20-
ternary.missingParen=Ternary operation missing parentheses.
20+
ternary.missingParen=Ternary operation missing parentheses. Use the form \"(a != b) ? y : n\"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
+Ternary operation missing parentheses
1+
+Ternary operation missing parentheses. Use the form "(a != b) ? y : n"
22
+3 errors

0 commit comments

Comments
 (0)