summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwilk2010-11-01 17:28:08 (EDT)
committerRyan D. Brooks2010-11-01 17:28:08 (EDT)
commite0c27d7d5c5fcd567cd140b46d70f8bedcfd9093 (patch)
tree9caeb8af1a5f6a7436240eed2803b721feb360fb
parentb8ad9c21afd3c68763d8734614020bccaa55d0b9 (diff)
downloadorg.eclipse.osee-e0c27d7d5c5fcd567cd140b46d70f8bedcfd9093.zip
org.eclipse.osee-e0c27d7d5c5fcd567cd140b46d70f8bedcfd9093.tar.gz
org.eclipse.osee-e0c27d7d5c5fcd567cd140b46d70f8bedcfd9093.tar.bz2
refactor: Cleanup variableMap exception messages
Cleanup constructor initialization exception messages
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
index 005c726..b806eef 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
@@ -31,12 +31,13 @@ public class VariableMap {
public VariableMap(Object... optionArgs) throws OseeArgumentException {
for (int i = 0; i < optionArgs.length; i += 2) {
- if (optionArgs[i] instanceof String) {
+ Object object = optionArgs[i];
+ if (object instanceof String) {
variableMap.put((String) optionArgs[i], optionArgs[i + 1]);
- } else if (optionArgs[i] == null) {
- throw new OseeArgumentException("Option %d must not be null", i);
+ } else if (object == null) {
+ throw new OseeArgumentException("The [%d]th option must not be null", i);
} else {
- throw new OseeArgumentException("Option %d must be of type string but is of type [%s]", i,
+ throw new OseeArgumentException("The [%d]th option must be of type string but is of type [%s]", i,
optionArgs[i].getClass().getName());
}
}