Findbug warning supression

Added logic to enable findbug warnings supression via annotations
This commit is contained in:
Bill Hwang 2014-03-14 14:50:39 -07:00 committed by mrsolo
parent 8dfdc6f647
commit 744eabad03
2 changed files with 8 additions and 0 deletions

View File

@ -1314,6 +1314,13 @@
<value>true</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>

View File

@ -94,6 +94,7 @@ public class CreateSnapshotRequest extends MasterNodeOperationRequest<CreateSnap
}
@Override
@edu.umd.cs.findbugs.annotations.SuppressWarnings("NP_NULL_ON_SOME_PATH")
public ActionRequestValidationException validate() {
ActionRequestValidationException validationException = null;
if (snapshot == null) {