Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-12-23 17:02:39 +0000
committerRyan D. Brooks2015-12-23 17:02:39 +0000
commit491e33655af14eb3e0e19c3e68bfb4377eb26efa (patch)
tree1151508caa0c1aead471124941155914a8b57924 /plugins/org.eclipse.osee.ote.define
parent707b3e7a293e5fab698327ccaa6fd9d3c0a1965d (diff)
downloadorg.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.tar.gz
org.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.tar.xz
org.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.zip
refactor: Use OseeCoreException.wrap were applicable
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.java7
1 files changed, 2 insertions, 5 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 89e38b3f91c..5a7b2333512 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
@@ -20,7 +20,6 @@ import org.eclipse.osee.framework.core.data.IOseeBranch;
import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
import org.eclipse.osee.framework.core.exception.AttributeDoesNotExist;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
import org.eclipse.osee.framework.jdk.core.type.OseeArgumentException;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.util.Lib;
@@ -134,13 +133,11 @@ public class ArtifactTestRunOperator implements TestRunOperator {
}
public String getOutfileContents() throws OseeCoreException {
- String toReturn = null;
try {
- toReturn = Lib.inputStreamToString(new URI(getOutfileUrl()).toURL().openStream());
+ return Lib.inputStreamToString(new URI(getOutfileUrl()).toURL().openStream());
} catch (Exception ex) {
- OseeExceptions.wrapAndThrow(ex);
+ throw OseeCoreException.wrap(ex);
}
- return toReturn;
}
public Attribute<InputStream> getOutfileAttribute() throws AttributeDoesNotExist, OseeCoreException {

Back to the top