From: Julien HENRY Date: Thu, 20 Feb 2014 09:28:00 +0000 (+0100) Subject: Add @CheckForNull X-Git-Tag: 4.2~87 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=123fb281b2ccb46d8de77754f458b760c0093bd5;p=sonarqube.git Add @CheckForNull --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java index 871fcb60a56..962079f2e71 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java @@ -21,6 +21,7 @@ package org.sonar.api.resources; import org.apache.commons.lang.StringUtils; +import javax.annotation.CheckForNull; import javax.annotation.Nullable; import java.io.Serializable; @@ -233,6 +234,7 @@ public abstract class Resource implements Serializable { return this; } + @CheckForNull protected static String normalize(@Nullable String path) { if (StringUtils.isBlank(path)) { return null;