Skip to content

Commit

Permalink
Merge pull request #3281 from jglick/Util.escape
Browse files Browse the repository at this point in the history
Fixing nullability annotations on Util.escape
  • Loading branch information
oleg-nenashev committed Feb 24, 2018
2 parents dcb1bcd + 7f839d8 commit de967b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/Util.java
Expand Up @@ -1094,8 +1094,8 @@ public static String singleQuote(String s) {
/**
* Escapes HTML unsafe characters like <, & to the respective character entities.
*/
@Nonnull
public static String escape(@Nonnull String text) {
@Nullable
public static String escape(@CheckForNull String text) {
if (text==null) return null;
StringBuilder buf = new StringBuilder(text.length()+64);
for( int i=0; i<text.length(); i++ ) {
Expand Down

0 comments on commit de967b2

Please sign in to comment.