< prev index next >
src/java.base/share/classes/sun/net/www/MimeLauncher.java
Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD
*** 160,170 ****
and sets the execPath instance variable. It uses the exec.path
property to obtain a list of paths that is in turn used to
location the application. If a valid path is not found, it
returns false else true. */
private boolean findExecutablePath(String str) {
! if (str == null || str.length() == 0) {
return false;
}
String command;
int index = str.indexOf(' ');
--- 160,170 ----
and sets the execPath instance variable. It uses the exec.path
property to obtain a list of paths that is in turn used to
location the application. If a valid path is not found, it
returns false else true. */
private boolean findExecutablePath(String str) {
! if (str == null || str.isEmpty()) {
return false;
}
String command;
int index = str.indexOf(' ');
< prev index next >