Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2013-10-15 19:31:00 +0000
committerGerrit Code Review @ Eclipse.org2013-10-17 21:11:48 +0000
commitbaa0aaf1292df932338857d10ce098da609b160e (patch)
treed9facbb85b5c28ede356c821f0d714008ec312dc /plugins/org.eclipse.osee.ote.define
parent1e931bd17b9f01fcf988fdfeaa26ffa9bd98a719 (diff)
downloadorg.eclipse.osee-baa0aaf1292df932338857d10ce098da609b160e.tar.gz
org.eclipse.osee-baa0aaf1292df932338857d10ce098da609b160e.tar.xz
org.eclipse.osee-baa0aaf1292df932338857d10ce098da609b160e.zip
refactor: Remove unnecessary exception handling from ArtifactTestRunOperator
Diffstat (limited to 'plugins/org.eclipse.osee.ote.define')
-rw-r--r--plugins/org.eclipse.osee.ote.define/src/org/eclipse/osee/ote/define/artifacts/ArtifactTestRunOperator.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.ote.define/src/org/eclipse/osee/ote/define/artifacts/ArtifactTestRunOperator.java b/plugins/org.eclipse.osee.ote.define/src/org/eclipse/osee/ote/define/artifacts/ArtifactTestRunOperator.java
index 03c109b8f2..9b6c5f2c7a 100644
--- a/plugins/org.eclipse.osee.ote.define/src/org/eclipse/osee/ote/define/artifacts/ArtifactTestRunOperator.java
+++ b/plugins/org.eclipse.osee.ote.define/src/org/eclipse/osee/ote/define/artifacts/ArtifactTestRunOperator.java
@@ -56,14 +56,9 @@ public class ArtifactTestRunOperator implements TestRunOperator {
}
private void checkForType(Artifact artifact) throws OseeArgumentException {
- try {
- if (!artifact.isOfType(CoreArtifactTypes.TestRun)) {
- throw new OseeArgumentException("Unable to operate on type [%s]. Only [%s] allowed.",
- artifact.getArtifactTypeName(), CoreArtifactTypes.TestRun);
- }
- } catch (OseeCoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ if (!artifact.isOfType(CoreArtifactTypes.TestRun)) {
+ throw new OseeArgumentException("Unable to operate on type [%s]. Only [%s] allowed.",
+ artifact.getArtifactTypeName(), CoreArtifactTypes.TestRun);
}
}
@@ -254,6 +249,7 @@ public class ArtifactTestRunOperator implements TestRunOperator {
return date;
}
+ @Override
public boolean wasAborted() {
boolean toReturn = true;
try {

Back to the top