From 0165b2e18b4c044b135724a69ee84a9d104c79ed Mon Sep 17 00:00:00 2001 From: nickl- Date: Mon, 30 Oct 2017 20:43:30 +0200 Subject: Squash compiler warnings in tests. With the unit tests warnings were squashed by suppressing them with SuppressWarnings annotations, instead of reparing the issues as was done with the source. Reasons being... * The tests might be relying on the types as they were defined. * If the tests were written to test against the correct forms they would've/should've stipulated those. * Even unused members might be important to tests so we attempt to change as little as possible. --- src/test/test3/NestedClass.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/test3/NestedClass.java') diff --git a/src/test/test3/NestedClass.java b/src/test/test3/NestedClass.java index 75b4efe2..e1459b26 100644 --- a/src/test/test3/NestedClass.java +++ b/src/test/test3/NestedClass.java @@ -17,6 +17,7 @@ public class NestedClass { public Object bar() { class Local { + @SuppressWarnings("unused") int j; } return new Local(); -- cgit v1.2.3