diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee')
4 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseArtifactTypeAccessor.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseArtifactTypeAccessor.java index a62ff79c5d8..53e2ac3f5b8 100644 --- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseArtifactTypeAccessor.java +++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseArtifactTypeAccessor.java @@ -135,12 +135,12 @@ public class DatabaseArtifactTypeAccessor extends AbstractDatabaseAccessor<Artif ArtifactType superArtType = cache.getById(superArtTypeId); if (baseArtType == null) { - throw new OseeInvalidInheritanceException(String.format( - "ArtifactType [%s] which inherits from [%s] is null", artTypeId, superArtType)); + throw new OseeInvalidInheritanceException("ArtifactType [%s] which inherits from [%s] is null", + artTypeId, superArtType); } if (superArtType == null) { - throw new OseeInvalidInheritanceException(String.format( - "ArtifactType [%s] which inherits from null artifact [%s]", artTypeId, superArtType)); + throw new OseeInvalidInheritanceException("ArtifactType [%s] which inherits from null artifact [%s]", + artTypeId, superArtType); } baseToSuperTypes.put(baseArtType, superArtType); } diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java index 46459432b79..bf74fa70cb1 100644 --- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java +++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java @@ -147,8 +147,8 @@ public class DatabaseBranchAccessor extends AbstractDatabaseAccessor<Branch> { Branch childBranch = entry.getKey(); Branch parentBranch = branchCache.getById(entry.getValue()); if (parentBranch == null) { - throw new BranchDoesNotExist(String.format("Parent Branch id:[%s] does not exist for child branch [%s]", - entry.getValue(), entry.getKey())); + throw new BranchDoesNotExist("Parent Branch id:[%s] does not exist for child branch [%s]", + entry.getValue(), entry.getKey()); } childBranch.setParentBranch(parentBranch); } diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseTransactionRecordAccessor.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseTransactionRecordAccessor.java index e3746b23c17..f391eb44ddd 100644 --- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseTransactionRecordAccessor.java +++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseTransactionRecordAccessor.java @@ -99,7 +99,7 @@ public class DatabaseTransactionRecordAccessor implements ITransactionDataAccess toReturn = loadFirstTransactionRecord(cache, branch, SELECT_BRANCH_TRANSACTIONS, branch.getId()); break; default: - throw new OseeStateException(String.format("Transaction Type [%s] is not supported", transactionType)); + throw new OseeStateException("Transaction Type [%s] is not supported", transactionType); } return toReturn; } diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java index 9d7e5c75e32..1340f0cd570 100644 --- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java +++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java @@ -130,7 +130,7 @@ public abstract class SqlManager { case BOOLEAN: return !Strings.isValid(value) ? false : Boolean.parseBoolean(value); default: - throw new OseeDataStoreException("unexpected column type: " + columnType); + throw new OseeDataStoreException("unexpected column type [%s]", columnType); } } |