From 4ca75c6cf60faa51f7f07ee2a23836a6ab6a077c Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Thu, 18 Aug 2022 14:28:01 +0200 Subject: [PATCH] Enable Error Prone's `VoidMissingNullable` check (#180) --- .../LexicographicalAnnotationAttributeListing.java | 6 +++--- pom.xml | 3 --- .../refaster/plugin/RefasterRuleCompilerTaskListener.java | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/LexicographicalAnnotationAttributeListing.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/LexicographicalAnnotationAttributeListing.java index fca740cdb2..9ba04496e0 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/LexicographicalAnnotationAttributeListing.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/LexicographicalAnnotationAttributeListing.java @@ -175,21 +175,21 @@ private static ImmutableList> getStructure( new TreeScanner() { @Nullable @Override - public Void visitIdentifier(IdentifierTree node, Void ctx) { + public Void visitIdentifier(IdentifierTree node, @Nullable Void ctx) { nodes.add(tokenize(node)); return super.visitIdentifier(node, ctx); } @Nullable @Override - public Void visitLiteral(LiteralTree node, Void ctx) { + public Void visitLiteral(LiteralTree node, @Nullable Void ctx) { nodes.add(tokenize(node)); return super.visitLiteral(node, ctx); } @Nullable @Override - public Void visitPrimitiveType(PrimitiveTypeTree node, Void ctx) { + public Void visitPrimitiveType(PrimitiveTypeTree node, @Nullable Void ctx) { nodes.add(tokenize(node)); return super.visitPrimitiveType(node, ctx); } diff --git a/pom.xml b/pom.xml index b2a01c63b5..3f0314f393 100644 --- a/pom.xml +++ b/pom.xml @@ -1541,9 +1541,6 @@ -Xep:StaticOrDefaultInterfaceMethod:OFF -Xep:Varifier:OFF - - -Xep:VoidMissingNullable:OFF -XepOpt:CheckReturnValue:CheckAllConstructors=true