diff options
author | rbrooks | 2010-09-14 16:54:49 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2010-09-14 16:54:49 +0000 |
commit | 74225843949515181df78245bfcb31147a805ba9 (patch) | |
tree | 93f998f89457d9df6ef5ace11c6127216d56bb47 /plugins/org.eclipse.osee.framework.core.message/src/org/eclipse | |
parent | f0f991b4f728f2e7550016da91eb2e8d2c8c750c (diff) | |
download | org.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.core.message/src/org/eclipse')
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java index 78df8e189d8..2ff6a1ea8ec 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java @@ -35,8 +35,7 @@ public final class ChangeItemUtil { if (!toReturn.isValid()) { toReturn = item.getCurrentVersion(); if (!toReturn.isValid()) { - throw new OseeStateException(String.format("Cannot find a valid starting point for change item: %s", - item)); + throw new OseeStateException("Cannot find a valid starting point for change item: %s", item); } } } diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationService.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationService.java index 826feda3f84..5f86b151598 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationService.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationService.java @@ -68,7 +68,7 @@ public class DataTranslationService implements IDataTranslationService { Conditions.checkNotNull(txId, "translator Id"); ITranslator<?> toReturn = translators.get(txId); if (toReturn == null) { - throw new OseeStateException(String.format("Unable to find a match for translator id [%s]", txId)); + throw new OseeStateException("Unable to find a match for translator id [%s]", txId); } return toReturn; |