You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2012/12/18 07:55:56 UTC
svn commit: r1423295 -
/karaf/branches/karaf-2.3.x/shell/commands/src/main/java/org/apache/karaf/shell/commands/NewAction.java
Author: jbonofre
Date: Tue Dec 18 06:55:54 2012
New Revision: 1423295
URL: http://svn.apache.org/viewvc?rev=1423295&view=rev
Log:
[KARAF-2072] Fix spelling issue in NewAction command
Modified:
karaf/branches/karaf-2.3.x/shell/commands/src/main/java/org/apache/karaf/shell/commands/NewAction.java
Modified: karaf/branches/karaf-2.3.x/shell/commands/src/main/java/org/apache/karaf/shell/commands/NewAction.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.3.x/shell/commands/src/main/java/org/apache/karaf/shell/commands/NewAction.java?rev=1423295&r1=1423294&r2=1423295&view=diff
==============================================================================
--- karaf/branches/karaf-2.3.x/shell/commands/src/main/java/org/apache/karaf/shell/commands/NewAction.java (original)
+++ karaf/branches/karaf-2.3.x/shell/commands/src/main/java/org/apache/karaf/shell/commands/NewAction.java Tue Dec 18 06:55:54 2012
@@ -36,7 +36,7 @@ import java.util.List;
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 @@ public class NewAction extends AbstractA
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());
}
}