.contains() instead of .indexOf()

This commit is contained in:
Mattias Holmqvist 2011-11-27 14:26:10 +01:00
parent 66a42c372c
commit a006d63b44
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class CreateAndRegisterMachineFromIsoIfNotAlreadyExists implements Functi
}
private boolean machineNotFoundException(VBoxException e) {
return e.getMessage().indexOf("VirtualBox error: Could not find a registered machine named ") != -1;
return e.getMessage().contains("VirtualBox error: Could not find a registered machine named ");
}
private IMachine createMachine(IVirtualBox vBox, String vmName) {