From 72b55dccb18f38b8aefd0ac8e7c2e8bd2dd5c057 Mon Sep 17 00:00:00 2001 From: Sander Koning Date: Fri, 20 Sep 2013 17:13:39 +0200 Subject: Issue 559: NullPointerException when @NonNull is used in abstract method - Prevent NPE in javac and give a proper warning in both eclipse and javac - Add test cases --- .../messages-idempotent/NonNullOnParameterAbstract.java.messages | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages (limited to 'test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages') diff --git a/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages b/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages new file mode 100644 index 00000000..00547171 --- /dev/null +++ b/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages @@ -0,0 +1 @@ +9:36 @NonNull is meaningless on a parameter of an abstract method. \ No newline at end of file -- cgit From 7b8a85e1f991f838d6692ef789f53ed604a4a4e9 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 24 Sep 2013 01:33:22 +0200 Subject: Fixed slight typo issues with the tests due to merging and icelandic on the fly bug fixing. --- .../EqualsAndHashCodeWithSomeExistingMethods.java.messages | 4 ++-- .../messages-delombok/NonNullOnParameterAbstract.java.messages | 2 +- .../EqualsAndHashCodeWithSomeExistingMethods.java.messages | 4 ++-- .../resource/messages-ecj/NonNullOnParameterAbstract.java.messages | 2 +- .../messages-idempotent/NonNullOnParameterAbstract.java.messages | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages') diff --git a/test/transform/resource/messages-delombok/EqualsAndHashCodeWithSomeExistingMethods.java.messages b/test/transform/resource/messages-delombok/EqualsAndHashCodeWithSomeExistingMethods.java.messages index f5dfd559..75ddfa54 100644 --- a/test/transform/resource/messages-delombok/EqualsAndHashCodeWithSomeExistingMethods.java.messages +++ b/test/transform/resource/messages-delombok/EqualsAndHashCodeWithSomeExistingMethods.java.messages @@ -1,2 +1,2 @@ -4 Not generating equals: One of equals, hashCode, and canEqual exists. You should either write all of these are none of these (in the latter case, lombok generates them). -15 Not generating equals and hashCode: One of equals, hashCode, and canEqual exists. You should either write all of these are none of these (in the latter case, lombok generates them). +4 Not generating equals: One of equals, hashCode, and canEqual exists. You should either write all of these or none of these (in the latter case, lombok generates them). +15 Not generating equals and hashCode: One of equals, hashCode, and canEqual exists. You should either write all of these or none of these (in the latter case, lombok generates them). diff --git a/test/transform/resource/messages-delombok/NonNullOnParameterAbstract.java.messages b/test/transform/resource/messages-delombok/NonNullOnParameterAbstract.java.messages index 1ebeea05..fd5bffd5 100644 --- a/test/transform/resource/messages-delombok/NonNullOnParameterAbstract.java.messages +++ b/test/transform/resource/messages-delombok/NonNullOnParameterAbstract.java.messages @@ -1 +1 @@ -6:36 @NonNull is meaningless on a parameter of an abstract method. +6 @NonNull is meaningless on a parameter of an abstract method. diff --git a/test/transform/resource/messages-ecj/EqualsAndHashCodeWithSomeExistingMethods.java.messages b/test/transform/resource/messages-ecj/EqualsAndHashCodeWithSomeExistingMethods.java.messages index f5dfd559..75ddfa54 100644 --- a/test/transform/resource/messages-ecj/EqualsAndHashCodeWithSomeExistingMethods.java.messages +++ b/test/transform/resource/messages-ecj/EqualsAndHashCodeWithSomeExistingMethods.java.messages @@ -1,2 +1,2 @@ -4 Not generating equals: One of equals, hashCode, and canEqual exists. You should either write all of these are none of these (in the latter case, lombok generates them). -15 Not generating equals and hashCode: One of equals, hashCode, and canEqual exists. You should either write all of these are none of these (in the latter case, lombok generates them). +4 Not generating equals: One of equals, hashCode, and canEqual exists. You should either write all of these or none of these (in the latter case, lombok generates them). +15 Not generating equals and hashCode: One of equals, hashCode, and canEqual exists. You should either write all of these or none of these (in the latter case, lombok generates them). diff --git a/test/transform/resource/messages-ecj/NonNullOnParameterAbstract.java.messages b/test/transform/resource/messages-ecj/NonNullOnParameterAbstract.java.messages index 48d1508e..8eb312ef 100644 --- a/test/transform/resource/messages-ecj/NonNullOnParameterAbstract.java.messages +++ b/test/transform/resource/messages-ecj/NonNullOnParameterAbstract.java.messages @@ -1 +1 @@ -6:154 @NonNull is meaningless on a parameter of an abstract method. \ No newline at end of file +6 @NonNull is meaningless on a parameter of an abstract method. \ No newline at end of file diff --git a/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages b/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages index 00547171..0d9fcfdc 100644 --- a/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages +++ b/test/transform/resource/messages-idempotent/NonNullOnParameterAbstract.java.messages @@ -1 +1 @@ -9:36 @NonNull is meaningless on a parameter of an abstract method. \ No newline at end of file +9 @NonNull is meaningless on a parameter of an abstract method. \ No newline at end of file -- cgit