From 79c32c22e2ebf4e97b566edb86a575db641ed7f1 Mon Sep 17 00:00:00 2001 From: Mattias Holmqvist Date: Tue, 29 Nov 2011 20:04:50 +0100 Subject: [PATCH] .indexOf() -> .contains() --- .../virtualbox/functions/AttachDistroMediumToMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/AttachDistroMediumToMachine.java b/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/AttachDistroMediumToMachine.java index e4325e70c2..435e2e248a 100644 --- a/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/AttachDistroMediumToMachine.java +++ b/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/AttachDistroMediumToMachine.java @@ -56,7 +56,7 @@ public class AttachDistroMediumToMachine implements Function { } private boolean alreadyAttached(VBoxException e) { - return e.getMessage().indexOf("is already attached to port") != -1; + return e.getMessage().contains("is already attached to port"); } } \ No newline at end of file