diff options
author | nickl- <github@jigsoft.co.za> | 2017-10-30 20:43:30 +0200 |
---|---|---|
committer | nickl- <github@jigsoft.co.za> | 2017-10-30 20:43:30 +0200 |
commit | 0165b2e18b4c044b135724a69ee84a9d104c79ed (patch) | |
tree | 004a9eb0dc74ea014096640d4e9305cc4aea882a /src/test/test2/Nested2.java | |
parent | 62851d0af30cdb0c54046627585451a468aacd2a (diff) | |
download | javassist-0165b2e18b4c044b135724a69ee84a9d104c79ed.tar.gz javassist-0165b2e18b4c044b135724a69ee84a9d104c79ed.zip |
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.
Diffstat (limited to 'src/test/test2/Nested2.java')
-rw-r--r-- | src/test/test2/Nested2.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test2/Nested2.java b/src/test/test2/Nested2.java index f23439bd..728c1b7a 100644 --- a/src/test/test2/Nested2.java +++ b/src/test/test2/Nested2.java @@ -1,5 +1,6 @@ package test2;
+@SuppressWarnings("unused") public class Nested2 {
private int i = 3;
private double d = 3.0;
|