Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-14 16:54:49 +0000
committerRyan D. Brooks2010-09-14 16:54:49 +0000
commit74225843949515181df78245bfcb31147a805ba9 (patch)
tree93f998f89457d9df6ef5ace11c6127216d56bb47 /plugins/org.eclipse.osee.framework.resource.management
parentf0f991b4f728f2e7550016da91eb2e8d2c8c750c (diff)
downloadorg.eclipse.osee-74225843949515181df78245bfcb31147a805ba9.tar.gz
org.eclipse.osee-74225843949515181df78245bfcb31147a805ba9.tar.xz
org.eclipse.osee-74225843949515181df78245bfcb31147a805ba9.zip
refactor: Directly support String.format in OseeCoreException constructors
Diffstat (limited to 'plugins/org.eclipse.osee.framework.resource.management')
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/MalformedLocatorException.java4
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceLocatorManager.java4
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java2
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/OptionsProcessor.java2
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/MalformedLocatorException.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/MalformedLocatorException.java
index 71b0d842ec..3cae53bbc8 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/MalformedLocatorException.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/MalformedLocatorException.java
@@ -23,8 +23,8 @@ public class MalformedLocatorException extends OseeCoreException {
super(message, cause);
}
- public MalformedLocatorException(String message) {
- super(message);
+ public MalformedLocatorException(String message, Object... args) {
+ super(message, args);
}
public MalformedLocatorException(Throwable cause) {
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceLocatorManager.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceLocatorManager.java
index 6a37211dc3..20243df12e 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceLocatorManager.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceLocatorManager.java
@@ -75,8 +75,8 @@ public class ResourceLocatorManager implements IResourceLocatorManager {
}
}
if (toReturn == null) {
- throw new MalformedLocatorException(String.format("Error finding locator for [%s] in [%s]", protocol,
- resourceLocatorProviders));
+ throw new MalformedLocatorException("Error finding locator for [%s] in [%s]", protocol,
+ resourceLocatorProviders);
}
return toReturn;
}
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java
index 33ea2cc42a..ed2c02573f 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java
@@ -90,7 +90,7 @@ public class ResourceManager implements IResourceManager {
}
if (toReturn == null) {
- throw new OseeNotFoundException(String.format("Invalid Locator: [%s]", locator));
+ throw new OseeNotFoundException("Invalid Locator: [%s]", locator);
}
return toReturn;
}
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/OptionsProcessor.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/OptionsProcessor.java
index ae73ae7650..e0ff142448 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/OptionsProcessor.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/util/OptionsProcessor.java
@@ -77,7 +77,7 @@ public class OptionsProcessor {
File storageFile = new File(fileuri);
if (!overwrite) {
if (storageFile.exists()) {
- throw new OseeStateException(String.format("The file [%s] already exists.", storageFile.getAbsolutePath()));
+ throw new OseeStateException("The file [%s] already exists.", storageFile.getAbsolutePath());
}
}
File parent = storageFile.getParentFile();

Back to the top