< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/TypePath.java

Print this page
rev 51919 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb

*** 159,169 **** * a type path in string form, in the format used by * {@link #toString()}. May be null or empty. * @return the corresponding TypePath object, or null if the path is empty. */ public static TypePath fromString(final String typePath) { ! if (typePath == null || typePath.length() == 0) { return null; } int n = typePath.length(); ByteVector out = new ByteVector(n); out.putByte(0); --- 159,169 ---- * a type path in string form, in the format used by * {@link #toString()}. May be null or empty. * @return the corresponding TypePath object, or null if the path is empty. */ public static TypePath fromString(final String typePath) { ! if (typePath == null || typePath.isEmpty()) { return null; } int n = typePath.length(); ByteVector out = new ByteVector(n); out.putByte(0);
< prev index next >