Fix annotation positions
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 15:40:40 +0000 (17:40 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 20:02:10 +0000 (22:02 +0200)
errorprone is complaining a bit about non-TYPE_USE annotations
being in the wrong place. Fix up most of the violations, omitting
@Nullable, as that is pending migration to JDT, which will fix
those warnings.

Change-Id: I3a8f076f64192b675168af462656576f085a5522
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExampleGuiceRuleTest.java

index 77f7eb00443e08c3c94e8983d6ed9124e83bb19e..259d53e7060a28685995ce504e7e44deba5c312c 100644 (file)
@@ -21,8 +21,7 @@ import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
  * @author Michael Vorburger
  */
 public class ExampleGuiceRuleTest {
-
-    public @Rule GuiceRule guice = new GuiceRule(TestModule.class);
+    @Rule public GuiceRule guice = new GuiceRule(TestModule.class);
 
     @Inject SomeInterfaceWithPostConstruct someService;