.indexOf() -> .contains()

This commit is contained in:
Mattias Holmqvist 2011-11-29 20:04:50 +01:00
parent 4535f92c51
commit 79c32c22e2
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class AttachDistroMediumToMachine implements Function<IMachine, Void> {
}
private boolean alreadyAttached(VBoxException e) {
return e.getMessage().indexOf("is already attached to port") != -1;
return e.getMessage().contains("is already attached to port");
}
}