日期:2014-05-16 浏览次数:20437 次
<dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <version>1.3.9</version> <scope>compile</scope> </dependency>
/** * null to empty * * @param s @Nullable the string * @return @Nullable the string */ @Nonnull public static String nullToEmpty(@Nullable String s) { return s == null ? EMPTY : s; }