From 58a7914027e3373faa942aa4ce7df2d3ebfb9a20 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 4 Feb 2015 00:08:48 +0100 Subject: @UtilityClass handlers now more intelligent about inner types of implicitly static contexts (enums, interfaces, and annotation declarations). Also added tests to test for these. --- test/transform/resource/messages-ecj/UtilityClassErrors.java.messages | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/transform/resource/messages-ecj/UtilityClassErrors.java.messages') diff --git a/test/transform/resource/messages-ecj/UtilityClassErrors.java.messages b/test/transform/resource/messages-ecj/UtilityClassErrors.java.messages index c80a18dc..15c9b10f 100644 --- a/test/transform/resource/messages-ecj/UtilityClassErrors.java.messages +++ b/test/transform/resource/messages-ecj/UtilityClassErrors.java.messages @@ -1,3 +1,4 @@ 4 @UtilityClasses cannot have declared constructors. 7 @UtilityClass cannot be placed on a method local or anonymous inner class, or any class nested in such a class. -12 @UtilityClass is only supported on a class (can't be an interface, enum, or annotation) \ No newline at end of file +12 @UtilityClass is only supported on a class (can't be an interface, enum, or annotation) +17 @UtilityClass automatically makes the class static, however, this class cannot be made static. \ No newline at end of file -- cgit