From 123fb281b2ccb46d8de77754f458b760c0093bd5 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 20 Feb 2014 10:28:00 +0100 Subject: [PATCH] Add @CheckForNull --- .../src/main/java/org/sonar/api/resources/Resource.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5