< prev index next >

src/java.base/share/classes/javax/security/auth/callback/TextOutputCallback.java

Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD

*** 72,82 **** * or if {@code message} has a length of 0. */ public TextOutputCallback(int messageType, String message) { if ((messageType != INFORMATION && messageType != WARNING && messageType != ERROR) || ! message == null || message.length() == 0) throw new IllegalArgumentException(); this.messageType = messageType; this.message = message; } --- 72,82 ---- * or if {@code message} has a length of 0. */ public TextOutputCallback(int messageType, String message) { if ((messageType != INFORMATION && messageType != WARNING && messageType != ERROR) || ! message == null || message.isEmpty()) throw new IllegalArgumentException(); this.messageType = messageType; this.message = message; }
< prev index next >