Changing the StringBuilder to build around an empty String and not null, as null will cause an NPE. Reported by FindBugs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1006333 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2010-10-10 18:34:48 +00:00
parent 039f4566a9
commit cccbf94e72
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class AnnotationUtils {
break;
}
}
return new StringBuilder(annotationType == null ? null : annotationType.getName())
return new StringBuilder(annotationType == null ? "" : annotationType.getName())
.insert(0, '@').toString();
}