Permalink
Browse files

[KARAF-2072] Fix spelling issue in NewAction command

git-svn-id: https://svn.apache.org/repos/asf/karaf/trunk@1423296 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent aa8f494 commit cb449bdc31b71ab06845bf2127511d102caea0b2 @jbonofre jbonofre committed Dec 18, 2012
@@ -36,7 +36,7 @@
import java.util.Map;
/**
- * Instanciate a new object
+ * Instantiate a new object
*/
@Command(scope = "shell", name = "new", description = "Creates a new java object.")
public class NewAction extends AbstractAction {
@@ -71,12 +71,12 @@ protected Object doExecute() throws Exception {
Map.Entry<Constructor, List<Object>> match = matches.entrySet().iterator().next();
return newInstance(match.getKey(), match.getValue().toArray());
} catch (Throwable e) {
- throw new Exception("Error when instanciating object of class " + clazz.getName(), getRealCause(e));
+ throw new Exception("Error when instantiating object of class " + clazz.getName(), getRealCause(e));
}
} else if (matches.size() == 0) {
- throw new Exception("Unable to find a matching constructor on class " + clazz.getName() + " for arguments " + args + " when instanciating object.");
+ throw new Exception("Unable to find a matching constructor on class " + clazz.getName() + " for arguments " + args + " when instantiating object.");
} else {
- throw new Exception("Multiple matching constructors found on class " + clazz.getName() + " for arguments " + args + " when instanciating object: " + matches.keySet());
+ throw new Exception("Multiple matching constructors found on class " + clazz.getName() + " for arguments " + args + " when instantiating object: " + matches.keySet());
}
}

0 comments on commit cb449bd

Please sign in to comment.