mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
Fixing nullability annotations on Util.escape.
This commit is contained in:
1 file changed
+2
-2
@@ -1094,8 +1094,8 @@ public class Util {
|
||||
/**
|
||||
* 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++ ) {
|
||||
|
||||
Reference in new issue
Block a user