diff options
Diffstat (limited to 'plugins')
94 files changed, 223 insertions, 303 deletions
diff --git a/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF index a7be87892f3..da1c8c5b1f0 100644 --- a/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF @@ -29,6 +29,7 @@ Import-Package: org.eclipse.core.runtime, org.eclipse.osee.framework.core.client, org.eclipse.osee.framework.core.exception, org.eclipse.osee.framework.core.message.test, + org.eclipse.osee.framework.core.data, org.eclipse.osee.framework.core.model, org.eclipse.osee.framework.core.test, org.eclipse.osee.framework.database.core, diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/artifact/Resolver.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/artifact/Resolver.java index f6ef6ec214a..765fef03a4f 100644 --- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/artifact/Resolver.java +++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/artifact/Resolver.java @@ -14,7 +14,6 @@ import java.io.CharArrayReader; import java.io.IOException; import java.nio.CharBuffer; import javax.xml.transform.Source; -import javax.xml.transform.TransformerException; import javax.xml.transform.URIResolver; import javax.xml.transform.stream.StreamSource; import org.eclipse.osee.define.internal.Activator; @@ -41,7 +40,7 @@ public class Resolver implements URIResolver { } @Override - public Source resolve(String href, String base) throws TransformerException { + public Source resolve(String href, String base) { CharBuffer rightOne = null; if (href.equals("auxiliary.xsl")) { rightOne = xslAuxiliary; diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/RequirementsTestReport.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/RequirementsTestReport.java index d1409f6107d..f07d49485b0 100644 --- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/RequirementsTestReport.java +++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/RequirementsTestReport.java @@ -125,20 +125,20 @@ public class RequirementsTestReport extends AbstractBlam { report.append(AHTML.addRowMultiColumnTable(outputCells)); } - private void report() throws OseeCoreException, IOException { + private void report() { report.append(AHTML.endMultiColumnTable()); XResultData rd = new XResultData(); rd.addRaw(report.toString()); XResultDataUI.report(rd, "Requirements Test Report", Manipulations.RAW_HTML); } - private void init(VariableMap variableMap) throws OseeCoreException, IOException { + private void init(VariableMap variableMap) throws OseeCoreException { inputArtifacts = variableMap.getArtifacts("artifacts"); initReport(); load(); } - private void initReport() throws OseeCoreException, IOException { + private void initReport() { report = new StringBuilder(AHTML.beginMultiColumnTable(100, 1)); report.append(AHTML.addHeaderRowMultiColumnTable(columnHeaders)); } diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemRequirementVerificationLevel.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemRequirementVerificationLevel.java index d7b01e89b6c..df083f0be9a 100644 --- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemRequirementVerificationLevel.java +++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemRequirementVerificationLevel.java @@ -77,11 +77,11 @@ public class SubsystemRequirementVerificationLevel extends AbstractBlam { transaction.execute(); } - private void report() throws OseeCoreException { + private void report() { report.append(AHTML.endMultiColumnTable()); XResultData rd = new XResultData(); rd.addRaw(report.toString()); - XResultDataUI.report(rd,"Set Verification Level", Manipulations.RAW_HTML); + XResultDataUI.report(rd, "Set Verification Level", Manipulations.RAW_HTML); } private void beginReport() { @@ -105,7 +105,7 @@ public class SubsystemRequirementVerificationLevel extends AbstractBlam { private String paragraphNumber; private String subsystem; - public SubsystemRequirement(Artifact req) throws OseeCoreException { + public SubsystemRequirement(Artifact req) { this.req = req; } @@ -127,7 +127,7 @@ public class SubsystemRequirementVerificationLevel extends AbstractBlam { verificationLevel = req.getSoleAttributeValue(CoreAttributeTypes.VerificationLevel, "UNDEFINED"); } - private int getHardwareComponentCount() throws OseeCoreException { + private int getHardwareComponentCount() { return RelationManager.getRelatedArtifactsCount(req, CoreRelationTypes.Allocation__Component); } diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/RemoveTraceMarksFromTraceUnits.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/RemoveTraceMarksFromTraceUnits.java index 6c82d5b5670..c28916d7418 100644 --- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/RemoveTraceMarksFromTraceUnits.java +++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/RemoveTraceMarksFromTraceUnits.java @@ -321,12 +321,12 @@ public class RemoveTraceMarksFromTraceUnits extends AbstractBlam { public IStatus run(IProgressMonitor monitor) throws Exception { ResultsEditor.open(new IResultsEditorProvider() { @Override - public String getEditorName() throws OseeCoreException { + public String getEditorName() { return getName(); } @Override - public List<IResultsEditorTab> getResultsEditorTabs() throws OseeCoreException { + public List<IResultsEditorTab> getResultsEditorTabs() { List<IResultsEditorTab> resultsTabs = new ArrayList<IResultsEditorTab>(); if (modifiedRows != null && !modifiedRows.isEmpty()) { resultsTabs.add(new ResultsEditorTableTab("Modified Trace Units", getModifiedHeaders(), diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/TraceReportBlam.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/TraceReportBlam.java index 980ef370614..337bcda9743 100644 --- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/TraceReportBlam.java +++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/blam/TraceReportBlam.java @@ -312,12 +312,12 @@ public class TraceReportBlam extends AbstractBlam { public IStatus run(IProgressMonitor monitor) throws Exception { ResultsEditor.open(new IResultsEditorProvider() { @Override - public String getEditorName() throws OseeCoreException { + public String getEditorName() { return getName(); } @Override - public List<IResultsEditorTab> getResultsEditorTabs() throws OseeCoreException { + public List<IResultsEditorTab> getResultsEditorTabs() { return results; } }); diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessObject.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessObject.java index 8f66293b8a4..d8a31d2603c 100644 --- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessObject.java +++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessObject.java @@ -37,7 +37,7 @@ public abstract class AccessObject { } } - public static AccessObject getAccessObjectFromCache(Object object) throws OseeCoreException { + public static AccessObject getAccessObjectFromCache(Object object) { if (object instanceof Artifact) { return ArtifactAccessObject.getArtifactAccessObjectFromCache((Artifact) object); } else if (object instanceof IOseeBranch) { diff --git a/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/change/ComputeNetChangeTest.java b/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/change/ComputeNetChangeTest.java index 554aa005fc5..e7f9c1ee09d 100644 --- a/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/change/ComputeNetChangeTest.java +++ b/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/change/ComputeNetChangeTest.java @@ -21,7 +21,6 @@ import java.util.List; import org.eclipse.core.runtime.IStatus; import org.eclipse.osee.framework.branch.management.change.ComputeNetChangeOperation; import org.eclipse.osee.framework.core.enums.ModificationType; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.ChangeItem; import org.eclipse.osee.framework.core.message.ChangeVersion; import org.eclipse.osee.framework.core.message.test.mocks.ChangeTestUtility; @@ -36,7 +35,7 @@ import org.junit.Test; */ public class ComputeNetChangeTest { - public List<TestData> getTestData() throws OseeCoreException { + public List<TestData> getTestData() { List<TestData> data = new ArrayList<TestData>(); // New Or Introduced @@ -95,7 +94,7 @@ public class ComputeNetChangeTest { } @Test - public void testNetChange() throws OseeCoreException { + public void testNetChange() { List<TestData> data = getTestData(); List<ChangeItem> items = new ArrayList<ChangeItem>(); for (TestData testData : data) { diff --git a/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/mocks/MockBranchProvider.java b/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/mocks/MockBranchProvider.java index b1820efc196..2b6ae2f5b18 100644 --- a/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/mocks/MockBranchProvider.java +++ b/plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/mocks/MockBranchProvider.java @@ -76,7 +76,7 @@ public final class MockBranchProvider implements IBranchesProvider { return branches; } - public static Branch getRootBranch(Collection<Branch> branches) throws OseeCoreException { + public static Branch getRootBranch(Collection<Branch> branches) { for (Branch branch : branches) { if (branch.getName().equals(ROOT_BRANCH_NAME)) { return branch; diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java index f1f9ac5f61b..9b5cc30a8e0 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java @@ -13,7 +13,6 @@ package org.eclipse.osee.framework.branch.management.change; import org.eclipse.osee.framework.core.enums.ConflictStatus; import org.eclipse.osee.framework.core.enums.ConflictType; import org.eclipse.osee.framework.core.enums.StorageState; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.IOseeStorable; import org.eclipse.osee.framework.core.model.MergeBranch; @@ -75,7 +74,7 @@ public final class Conflict implements IOseeStorable { } @Override - public void setId(int uniqueId) throws OseeCoreException { + public void setId(int uniqueId) { throw new UnsupportedOperationException(); } diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/BaseExportImportSaxHandler.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/BaseExportImportSaxHandler.java index 383120bd666..c0bfc51110a 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/BaseExportImportSaxHandler.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/BaseExportImportSaxHandler.java @@ -33,6 +33,8 @@ public abstract class BaseExportImportSaxHandler extends AbstractSaxHandler { this.dataMap = new HashMap<String, String>(); } + @SuppressWarnings("unused") + //SAXException is thrown by inheriting class @Override public void startElementFound(String uri, String localName, String name, Attributes attributes) throws SAXException { if (localName.equalsIgnoreCase(ExportImportXml.DATA)) { diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/MetaDataSaxHandler.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/MetaDataSaxHandler.java index 91e76faa58b..ca599e17dcb 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/MetaDataSaxHandler.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/MetaDataSaxHandler.java @@ -27,7 +27,6 @@ import org.eclipse.osee.framework.jdk.core.util.Lib; import org.eclipse.osee.framework.jdk.core.util.Strings; import org.eclipse.osee.framework.jdk.core.util.io.xml.AbstractSaxHandler; import org.xml.sax.Attributes; -import org.xml.sax.SAXException; /** * @author Roberto E. Escobar @@ -50,7 +49,7 @@ public class MetaDataSaxHandler extends AbstractSaxHandler { } @Override - public void startElementFound(String uri, String localName, String name, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String name, Attributes attributes) { if (localName.equalsIgnoreCase(ExportImportXml.METADATA)) { this.importMetadataMap.clear(); } else if (localName.equalsIgnoreCase(ExportImportXml.TABLE)) { diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TxDetailsHandler.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TxDetailsHandler.java index 01647a0ee05..f0a0a5bf7d6 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TxDetailsHandler.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TxDetailsHandler.java @@ -13,7 +13,6 @@ package org.eclipse.osee.framework.branch.management.exchange.transform; import java.util.HashMap; import org.eclipse.osee.framework.jdk.core.util.io.xml.AbstractSaxHandler; import org.xml.sax.Attributes; -import org.xml.sax.SAXException; /** * @author Ryan D. Brooks @@ -22,11 +21,11 @@ public class V0_9_0TxDetailsHandler extends AbstractSaxHandler { private final HashMap<Integer, Integer> branchIdMap = new HashMap<Integer, Integer>(10000); @Override - public void endElementFound(String uri, String localName, String qName) throws SAXException { + public void endElementFound(String uri, String localName, String qName) { } @Override - public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String qName, Attributes attributes) { if (localName.equals("entry")) { branchIdMap.put(Integer.parseInt(attributes.getValue("transaction_id")), Integer.parseInt(attributes.getValue("branch_id"))); diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TypeHandler.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TypeHandler.java index bf4cbbdc84b..88b36c268f2 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TypeHandler.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TypeHandler.java @@ -15,7 +15,6 @@ import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.cache.AbstractOseeCache; import org.eclipse.osee.framework.jdk.core.util.io.xml.AbstractSaxHandler; import org.xml.sax.Attributes; -import org.xml.sax.SAXException; /** * @author Ryan D. Brooks @@ -33,11 +32,11 @@ public class V0_9_0TypeHandler extends AbstractSaxHandler { } @Override - public void endElementFound(String uri, String localName, String qName) throws SAXException { + public void endElementFound(String uri, String localName, String qName) { } @Override - public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws SAXException, OseeCoreException { + public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws OseeCoreException { if (localName.equals("entry")) { String typeName = attributes.getValue(typeNameColumn); if (typeName.equals("ats.Parent Branch Id")) { diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2ArtifactVersionHandler.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2ArtifactVersionHandler.java index c4fa6a5f7a0..179a6dc7df3 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2ArtifactVersionHandler.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2ArtifactVersionHandler.java @@ -14,7 +14,6 @@ import java.util.HashMap; import java.util.Map; import org.eclipse.osee.framework.jdk.core.util.io.xml.AbstractSaxHandler; import org.xml.sax.Attributes; -import org.xml.sax.SAXException; /** * @author Roberto E. Escobar @@ -25,7 +24,7 @@ public class V0_9_2ArtifactVersionHandler extends AbstractSaxHandler { private final Map<Long, Long> artifactGammaToNetGammaId = new HashMap<Long, Long>(14000); @Override - public void endElementFound(String uri, String localName, String qName) throws SAXException { + public void endElementFound(String uri, String localName, String qName) { } public Map<Long, Long> getArtifactGammaToNetGammaId() { @@ -33,7 +32,7 @@ public class V0_9_2ArtifactVersionHandler extends AbstractSaxHandler { } @Override - public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String qName, Attributes attributes) { if (localName.equals("entry")) { Integer artifactId = Integer.valueOf(attributes.getValue("art_id")); Long gammaId = Long.valueOf(attributes.getValue("gamma_id")); diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2TxDetailsHandler.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2TxDetailsHandler.java index 643c3b7083a..c27d4c14bac 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2TxDetailsHandler.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2TxDetailsHandler.java @@ -14,7 +14,6 @@ import java.util.Map; import org.eclipse.osee.framework.core.enums.TransactionDetailsType; import org.eclipse.osee.framework.jdk.core.util.io.xml.AbstractSaxHandler; import org.xml.sax.Attributes; -import org.xml.sax.SAXException; /** * @author Roberto E. Escobar @@ -27,11 +26,11 @@ public class V0_9_2TxDetailsHandler extends AbstractSaxHandler { } @Override - public void endElementFound(String uri, String localName, String qName) throws SAXException { + public void endElementFound(String uri, String localName, String qName) { } @Override - public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String qName, Attributes attributes) { if (localName.equals("entry")) { int txType = Integer.parseInt(attributes.getValue("tx_type")); TransactionDetailsType detailsType = TransactionDetailsType.toEnum(txType); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java index 64d5c0a85a8..b3a69e39b05 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java @@ -14,7 +14,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.ArtifactTypeCacheUpdateResponse; import org.eclipse.osee.framework.core.message.ArtifactTypeCacheUpdateResponse.ArtifactTypeRow; import org.eclipse.osee.framework.core.message.TranslationUtil; @@ -35,7 +34,7 @@ public class ArtifactTypeCacheUpdateResponseTranslator implements ITranslator<Ar } @Override - public ArtifactTypeCacheUpdateResponse convert(PropertyStore store) throws OseeCoreException { + public ArtifactTypeCacheUpdateResponse convert(PropertyStore store) { List<ArtifactTypeRow> rows = new ArrayList<ArtifactTypeRow>(); Map<Integer, Integer[]> baseToSuper = new HashMap<Integer, Integer[]>(); List<Triplet<String, String, String>> artAttrs = new ArrayList<Triplet<String, String, String>>(); @@ -52,7 +51,7 @@ public class ArtifactTypeCacheUpdateResponseTranslator implements ITranslator<Ar } @Override - public PropertyStore convert(ArtifactTypeCacheUpdateResponse object) throws OseeCoreException { + public PropertyStore convert(ArtifactTypeCacheUpdateResponse object) { PropertyStore store = new PropertyStore(); List<ArtifactTypeRow> rows = object.getArtTypeRows(); for (int index = 0; index < rows.size(); index++) { diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheStoreRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheStoreRequestTranslator.java index e7e09375773..257b945da9c 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheStoreRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheStoreRequestTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.BranchCacheStoreRequest; import org.eclipse.osee.framework.core.message.BranchCacheUpdateUtil; import org.eclipse.osee.framework.core.translation.ITranslator; @@ -27,7 +26,7 @@ public class BranchCacheStoreRequestTranslator implements ITranslator<BranchCach } @Override - public BranchCacheStoreRequest convert(PropertyStore store) throws OseeCoreException { + public BranchCacheStoreRequest convert(PropertyStore store) { BranchCacheStoreRequest request = new BranchCacheStoreRequest(); BranchCacheUpdateUtil.loadMessage(request, store); request.setServerUpdateMessage(store.getBoolean(Field.IS_SERVER_MESSAGE.name())); @@ -35,7 +34,7 @@ public class BranchCacheStoreRequestTranslator implements ITranslator<BranchCach } @Override - public PropertyStore convert(BranchCacheStoreRequest object) throws OseeCoreException { + public PropertyStore convert(BranchCacheStoreRequest object) { PropertyStore store = new PropertyStore(); BranchCacheUpdateUtil.loadStore(store, object); store.put(Field.IS_SERVER_MESSAGE.name(), object.isServerUpdateMessage()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheUpdateResponseTranslator.java index e12538d4f5d..2fa8e133ab7 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheUpdateResponseTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCacheUpdateResponseTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.BranchCacheUpdateResponse; import org.eclipse.osee.framework.core.message.BranchCacheUpdateUtil; import org.eclipse.osee.framework.core.translation.ITranslator; @@ -23,14 +22,14 @@ import org.eclipse.osee.framework.jdk.core.type.PropertyStore; public class BranchCacheUpdateResponseTranslator implements ITranslator<BranchCacheUpdateResponse> { @Override - public BranchCacheUpdateResponse convert(PropertyStore store) throws OseeCoreException { + public BranchCacheUpdateResponse convert(PropertyStore store) { BranchCacheUpdateResponse response = new BranchCacheUpdateResponse(); BranchCacheUpdateUtil.loadMessage(response, store); return response; } @Override - public PropertyStore convert(BranchCacheUpdateResponse object) throws OseeCoreException { + public PropertyStore convert(BranchCacheUpdateResponse object) { PropertyStore store = new PropertyStore(); BranchCacheUpdateUtil.loadStore(store, object); return store; diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java index 80f017fb845..827f0bb7fc2 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import org.eclipse.osee.framework.core.enums.BranchArchivedState; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.ChangeBranchArchiveStateRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -27,7 +26,7 @@ public final class BranchChangeArchivedStateRequestTranslator implements ITransl } @Override - public ChangeBranchArchiveStateRequest convert(PropertyStore propertyStore) throws OseeCoreException { + public ChangeBranchArchiveStateRequest convert(PropertyStore propertyStore) { int branchId = propertyStore.getInt(Entry.BRANCH_ID.name()); BranchArchivedState state = BranchArchivedState.valueOf(propertyStore.get(Entry.BRANCH_ARCHIVED_STATE.name())); ChangeBranchArchiveStateRequest data = new ChangeBranchArchiveStateRequest(branchId, state); @@ -35,7 +34,7 @@ public final class BranchChangeArchivedStateRequestTranslator implements ITransl } @Override - public PropertyStore convert(ChangeBranchArchiveStateRequest data) throws OseeCoreException { + public PropertyStore convert(ChangeBranchArchiveStateRequest data) { PropertyStore store = new PropertyStore(); store.put(Entry.BRANCH_ID.name(), data.getBranchId()); store.put(Entry.BRANCH_ARCHIVED_STATE.name(), data.getState().name()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java index df9f7a2d564..bc1de459e16 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import org.eclipse.osee.framework.core.enums.BranchState; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.ChangeBranchStateRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -27,7 +26,7 @@ public final class BranchChangeStateRequestTranslator implements ITranslator<Cha } @Override - public ChangeBranchStateRequest convert(PropertyStore propertyStore) throws OseeCoreException { + public ChangeBranchStateRequest convert(PropertyStore propertyStore) { int branchId = propertyStore.getInt(Entry.BRANCH_ID.name()); BranchState state = BranchState.valueOf(propertyStore.get(Entry.BRANCH_STATE.name())); ChangeBranchStateRequest data = new ChangeBranchStateRequest(branchId, state); @@ -35,7 +34,7 @@ public final class BranchChangeStateRequestTranslator implements ITranslator<Cha } @Override - public PropertyStore convert(ChangeBranchStateRequest data) throws OseeCoreException { + public PropertyStore convert(ChangeBranchStateRequest data) { PropertyStore store = new PropertyStore(); store.put(Entry.BRANCH_ID.name(), data.getBranchId()); store.put(Entry.BRANCH_STATE.name(), data.getState().name()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java index ab3d80f3a33..3ef30824a22 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import org.eclipse.osee.framework.core.enums.BranchType; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.ChangeBranchTypeRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -27,7 +26,7 @@ public final class BranchChangeTypeRequestTranslator implements ITranslator<Chan } @Override - public ChangeBranchTypeRequest convert(PropertyStore propertyStore) throws OseeCoreException { + public ChangeBranchTypeRequest convert(PropertyStore propertyStore) { int branchId = propertyStore.getInt(Entry.BRANCH_ID.name()); BranchType type = BranchType.valueOf(propertyStore.get(Entry.BRANCH_TYPE.name())); ChangeBranchTypeRequest data = new ChangeBranchTypeRequest(branchId, type); @@ -35,7 +34,7 @@ public final class BranchChangeTypeRequestTranslator implements ITranslator<Chan } @Override - public PropertyStore convert(ChangeBranchTypeRequest data) throws OseeCoreException { + public PropertyStore convert(ChangeBranchTypeRequest data) { PropertyStore store = new PropertyStore(); store.put(Entry.BRANCH_ID.name(), data.getBranchId()); store.put(Entry.BRANCH_TYPE.name(), data.getType().name()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java index 65bae530751..df888f3886b 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.BranchCommitRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -28,7 +27,7 @@ public final class BranchCommitRequestTranslator implements ITranslator<BranchCo } @Override - public BranchCommitRequest convert(PropertyStore propertyStore) throws OseeCoreException { + public BranchCommitRequest convert(PropertyStore propertyStore) { int srcBranchId = propertyStore.getInt(Entry.SRC_BRANCH_ID.name()); int destBranchId = propertyStore.getInt(Entry.DEST_BRANCH_ID.name()); int userArtifactId = propertyStore.getInt(Entry.USER_ART_ID.name()); @@ -39,7 +38,7 @@ public final class BranchCommitRequestTranslator implements ITranslator<BranchCo } @Override - public PropertyStore convert(BranchCommitRequest data) throws OseeCoreException { + public PropertyStore convert(BranchCommitRequest data) { PropertyStore store = new PropertyStore(); store.put(Entry.IS_ARCHIVE_ALLOWED.name(), data.isArchiveAllowed()); store.put(Entry.USER_ART_ID.name(), data.getUserArtId()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java index 5b583a49426..f624a761600 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import org.eclipse.osee.framework.core.enums.BranchType; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.BranchCreationRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -38,7 +37,7 @@ public class BranchCreationRequestTranslator implements ITranslator<BranchCreati } @Override - public BranchCreationRequest convert(PropertyStore store) throws OseeCoreException { + public BranchCreationRequest convert(PropertyStore store) { String branchName = store.get(Fields.BRANCH_NAME.name()); int parentBranchId = store.getInt(Fields.PARENT_BRANCH_ID.name()); int associatedArtifactId = store.getInt(Fields.ASSOCIATED_ART_ID.name()); @@ -59,7 +58,7 @@ public class BranchCreationRequestTranslator implements ITranslator<BranchCreati } @Override - public PropertyStore convert(BranchCreationRequest object) throws OseeCoreException { + public PropertyStore convert(BranchCreationRequest object) { PropertyStore store = new PropertyStore(); store.put(Fields.BRANCH_NAME.name(), object.getBranchName()); store.put(Fields.PARENT_BRANCH_ID.name(), object.getParentBranchId()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java index db6dfe66c05..1d2b7a275a7 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.BranchCreationResponse; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -25,13 +24,13 @@ public class BranchCreationResponseTranslator implements ITranslator<BranchCreat } @Override - public BranchCreationResponse convert(PropertyStore store) throws OseeCoreException { + public BranchCreationResponse convert(PropertyStore store) { int branchId = store.getInt(Fields.BRANCH_ID.name()); return new BranchCreationResponse(branchId); } @Override - public PropertyStore convert(BranchCreationResponse object) throws OseeCoreException { + public PropertyStore convert(BranchCreationResponse object) { PropertyStore store = new PropertyStore(); store.put(Fields.BRANCH_ID.name(), object.getBranchId()); return store; diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/CacheUpdateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/CacheUpdateRequestTranslator.java index 069e72e7059..24177477dfe 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/CacheUpdateRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/CacheUpdateRequestTranslator.java @@ -14,7 +14,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.eclipse.osee.framework.core.enums.OseeCacheEnum; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.CacheUpdateRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -31,7 +30,7 @@ public class CacheUpdateRequestTranslator implements ITranslator<CacheUpdateRequ } @Override - public CacheUpdateRequest convert(PropertyStore propertyStore) throws OseeCoreException { + public CacheUpdateRequest convert(PropertyStore propertyStore) { OseeCacheEnum cacheId = OseeCacheEnum.valueOf(propertyStore.get(Entry.CACHE_ID.name())); String[] itemId = propertyStore.getArray(Entry.ITEM_IDS.name()); List<Integer> itemIds = new ArrayList<Integer>(); @@ -46,7 +45,7 @@ public class CacheUpdateRequestTranslator implements ITranslator<CacheUpdateRequ } @Override - public PropertyStore convert(CacheUpdateRequest object) throws OseeCoreException { + public PropertyStore convert(CacheUpdateRequest object) { PropertyStore store = new PropertyStore(); store.put(Entry.CACHE_ID.name(), object.getCacheId().name()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java index 9e095a50136..6a89cbcdd77 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.ChangeReportRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -25,7 +24,7 @@ public class ChangeReportRequestTranslator implements ITranslator<ChangeReportRe } @Override - public ChangeReportRequest convert(PropertyStore propertyStore) throws OseeCoreException { + public ChangeReportRequest convert(PropertyStore propertyStore) { int srcTx = propertyStore.getInt(Entry.SRC_TRANSACTION.name()); int destTx = propertyStore.getInt(Entry.DEST_TRANSACTION.name()); @@ -34,7 +33,7 @@ public class ChangeReportRequestTranslator implements ITranslator<ChangeReportRe } @Override - public PropertyStore convert(ChangeReportRequest data) throws OseeCoreException { + public PropertyStore convert(ChangeReportRequest data) { PropertyStore store = new PropertyStore(); store.put(Entry.SRC_TRANSACTION.name(), data.getSourceTx()); store.put(Entry.DEST_TRANSACTION.name(), data.getDestinationTx()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/DatastoreInitRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/DatastoreInitRequestTranslator.java index a14ff66790c..4c7ee761edf 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/DatastoreInitRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/DatastoreInitRequestTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.DatastoreInitRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -24,7 +23,7 @@ public class DatastoreInitRequestTranslator implements ITranslator<DatastoreInit } @Override - public DatastoreInitRequest convert(PropertyStore store) throws OseeCoreException { + public DatastoreInitRequest convert(PropertyStore store) { String tableDataSpace = store.get(Entry.TABLE_DATA_SPACE.name()); String indexDataSpace = store.get(Entry.INDEX_DATA_SPACE.name()); boolean useSchemasSpecified = store.getBoolean(Entry.USE_FILE_SPECIFIED_SCHEMAS.name()); @@ -32,7 +31,7 @@ public class DatastoreInitRequestTranslator implements ITranslator<DatastoreInit } @Override - public PropertyStore convert(DatastoreInitRequest object) throws OseeCoreException { + public PropertyStore convert(DatastoreInitRequest object) { PropertyStore store = new PropertyStore(); store.put(Entry.INDEX_DATA_SPACE.name(), object.getIndexDataSpace()); store.put(Entry.TABLE_DATA_SPACE.name(), object.getTableDataSpace()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeEnumTypeCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeEnumTypeCacheUpdateResponseTranslator.java index b33c8251e6e..cd96699e685 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeEnumTypeCacheUpdateResponseTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeEnumTypeCacheUpdateResponseTranslator.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import java.util.ArrayList; import java.util.List; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.OseeEnumTypeCacheUpdateResponse; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -30,7 +29,7 @@ public class OseeEnumTypeCacheUpdateResponseTranslator implements ITranslator<Os } @Override - public OseeEnumTypeCacheUpdateResponse convert(PropertyStore store) throws OseeCoreException { + public OseeEnumTypeCacheUpdateResponse convert(PropertyStore store) { int enumTypeRowCount = store.getInt(Fields.ENUM_TYPE_COUNT.name()); List<String[]> enumTypeRows = new ArrayList<String[]>(enumTypeRowCount); @@ -52,7 +51,7 @@ public class OseeEnumTypeCacheUpdateResponseTranslator implements ITranslator<Os } @Override - public PropertyStore convert(OseeEnumTypeCacheUpdateResponse response) throws OseeCoreException { + public PropertyStore convert(OseeEnumTypeCacheUpdateResponse response) { PropertyStore store = new PropertyStore(); List<String[]> enumTypeRows = response.getEnumTypeRows(); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeImportModelRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeImportModelRequestTranslator.java index 88885ba8f55..a02af8b81d9 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeImportModelRequestTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/OseeImportModelRequestTranslator.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.message.internal.translation; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.OseeImportModelRequest; import org.eclipse.osee.framework.core.translation.ITranslator; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; @@ -29,7 +28,7 @@ public class OseeImportModelRequestTranslator implements ITranslator<OseeImportM } @Override - public OseeImportModelRequest convert(PropertyStore store) throws OseeCoreException { + public OseeImportModelRequest convert(PropertyStore store) { String model = store.get(Fields.MODEL.name()); String modelName = store.get(Fields.MODEL_NAME.name()); boolean createTypeChangeReport = store.getBoolean(Fields.GENERATE_DIRTY_REPORT.name()); @@ -40,7 +39,7 @@ public class OseeImportModelRequestTranslator implements ITranslator<OseeImportM } @Override - public PropertyStore convert(OseeImportModelRequest object) throws OseeCoreException { + public PropertyStore convert(OseeImportModelRequest object) { PropertyStore store = new PropertyStore(); store.put(Fields.MODEL_NAME.name(), object.getModelName()); store.put(Fields.MODEL.name(), object.getModel()); diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/RelationTypeCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/RelationTypeCacheUpdateResponseTranslator.java index 4dfeb94abc1..2caf117500d 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/RelationTypeCacheUpdateResponseTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/RelationTypeCacheUpdateResponseTranslator.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import java.util.ArrayList; import java.util.List; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.RelationTypeCacheUpdateResponse; import org.eclipse.osee.framework.core.message.RelationTypeCacheUpdateResponse.RelationTypeRow; import org.eclipse.osee.framework.core.translation.ITranslator; @@ -29,7 +28,7 @@ public class RelationTypeCacheUpdateResponseTranslator implements ITranslator<Re } @Override - public RelationTypeCacheUpdateResponse convert(PropertyStore store) throws OseeCoreException { + public RelationTypeCacheUpdateResponse convert(PropertyStore store) { List<RelationTypeRow> rows = new ArrayList<RelationTypeRow>(); int rowCount = store.getInt(Fields.COUNT.name()); for (int index = 0; index < rowCount; index++) { @@ -40,7 +39,7 @@ public class RelationTypeCacheUpdateResponseTranslator implements ITranslator<Re } @Override - public PropertyStore convert(RelationTypeCacheUpdateResponse object) throws OseeCoreException { + public PropertyStore convert(RelationTypeCacheUpdateResponse object) { PropertyStore store = new PropertyStore(); List<RelationTypeRow> rows = object.getRelationTypeRows(); for (int index = 0; index < rows.size(); index++) { diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TableDataTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TableDataTranslator.java index ec0db65add7..1c5530babc7 100644 --- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TableDataTranslator.java +++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TableDataTranslator.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.message.internal.translation; import java.util.ArrayList; import java.util.List; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.message.TableData; import org.eclipse.osee.framework.core.message.TranslationUtil; import org.eclipse.osee.framework.core.translation.ITranslator; @@ -36,7 +35,7 @@ public class TableDataTranslator implements ITranslator<TableData> { } @Override - public TableData convert(PropertyStore store) throws OseeCoreException { + public TableData convert(PropertyStore store) { String title = store.get(Entry.TITLE.name()); String[] columns = store.getArray(Entry.HEADERS.name()); @@ -49,7 +48,7 @@ public class TableDataTranslator implements ITranslator<TableData> { } @Override - public PropertyStore convert(TableData data) throws OseeCoreException { + public PropertyStore convert(TableData data) { PropertyStore store = new PropertyStore(); store.put(Entry.TITLE.name(), data.getTitle()); store.put(Entry.HEADERS.name(), data.getColumns()); diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java index 6bd14b3c2f8..bda475179e4 100644 --- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java +++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java @@ -15,14 +15,13 @@ import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; -import org.junit.Assert; import org.eclipse.osee.framework.core.exception.OseeArgumentException; import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.exception.OseeStateException; import org.eclipse.osee.framework.core.exception.OseeTypeDoesNotExist; import org.eclipse.osee.framework.core.model.AbstractOseeType; -import org.eclipse.osee.framework.core.model.cache.AbstractOseeCache; import org.eclipse.osee.framework.jdk.core.util.GUID; +import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -221,7 +220,7 @@ public abstract class AbstractOseeCacheTest<T extends AbstractOseeType> { @Ignore @Test - public void testPersist() throws OseeCoreException { + public void testPersist() { // T item1 = data.get(0); // T item2 = data.get(1); // @@ -249,6 +248,8 @@ public abstract class AbstractOseeCacheTest<T extends AbstractOseeType> { // public void storeItems(Collection<T> toStore) throws OseeCoreException { } + @SuppressWarnings("unused") + //OseeCoreException is thrown by inheriting class. protected void checkEquals(T expected, T actual) throws OseeCoreException { Assert.assertEquals(expected, actual); } diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java index 4a955eb6ea4..c12947091eb 100644 --- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java +++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.model.fields; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.internal.fields.AssociatedArtifactField; import org.junit.Assert; import org.junit.BeforeClass; @@ -36,7 +35,7 @@ public class AssociatedArtifactFieldTest { } @Test - public void test() throws OseeCoreException { + public void test() { AssociatedArtifactField field = new AssociatedArtifactField(art1); Assert.assertEquals(false, field.isDirty()); diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java index 2b54b168b0b..dc47bf35c93 100644 --- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java +++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java @@ -12,10 +12,10 @@ package org.eclipse.osee.framework.core.model.fields; import java.util.ArrayList; import java.util.Collection; -import org.junit.Assert; import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.OseeField; import org.eclipse.osee.framework.jdk.core.util.Compare; +import org.junit.Assert; import org.junit.Test; import org.junit.runners.Parameterized.Parameters; @@ -71,7 +71,7 @@ public abstract class BaseOseeFieldTest { @SuppressWarnings("unchecked") @Parameters - public static Collection<Object[]> data() throws OseeCoreException { + public static Collection<Object[]> data() { Collection<Object[]> data = new ArrayList<Object[]>(); data.add(new Object[] {// diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java index 250d766cc54..939e1682727 100644 --- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java +++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java @@ -12,10 +12,10 @@ package org.eclipse.osee.framework.core.model.fields; import java.util.ArrayList; import java.util.Collection; -import org.junit.Assert; import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.OseeField; import org.eclipse.osee.framework.jdk.core.util.Compare; +import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -74,7 +74,7 @@ public class OseeFieldMainTest { @SuppressWarnings("unchecked") @Parameters - public static Collection<Object[]> data() throws OseeCoreException { + public static Collection<Object[]> data() { Collection<Object[]> data = new ArrayList<Object[]>(); data.add(new Object[] {// diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java index b3867476d20..37b9ad49d5b 100644 --- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java +++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.model.fields; import java.util.ArrayList; import java.util.Collection; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.exception.OseeStateException; import org.eclipse.osee.framework.core.model.IOseeStorable; import org.eclipse.osee.framework.core.model.internal.fields.UniqueIdField; @@ -34,7 +33,7 @@ public class UniqueIdFieldTest extends BaseOseeFieldTest { @SuppressWarnings("unchecked") @Parameters - public static Collection<Object[]> data() throws OseeCoreException { + public static Collection<Object[]> data() { Collection<Object[]> data = new ArrayList<Object[]>(); data.add(new Object[] {new OseeFieldTestData<Integer>( new UniqueIdField(), // diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java index 4aa3a6ab9dc..698198014b3 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java @@ -129,7 +129,7 @@ public class TransactionCache implements IOseeCache<TransactionRecord> { } @Override - public Collection<TransactionRecord> getAllDirty() throws OseeCoreException { + public Collection<TransactionRecord> getAllDirty() { Set<TransactionRecord> dirtys = new HashSet<TransactionRecord>(); for (TransactionRecord record : transactionIdCache.values()) { if (record.isDirty()) { @@ -140,15 +140,15 @@ public class TransactionCache implements IOseeCache<TransactionRecord> { } @Override - public void storeAllModified() throws OseeCoreException { + public void storeAllModified() { } @Override - public void storeItems(TransactionRecord... items) throws OseeCoreException { + public void storeItems(TransactionRecord... items) { } @Override - public void storeItems(Collection<TransactionRecord> toStore) throws OseeCoreException { + public void storeItems(Collection<TransactionRecord> toStore) { } public TransactionRecord getPriorTransaction(TransactionRecord transactionId) throws OseeCoreException { @@ -166,7 +166,7 @@ public class TransactionCache implements IOseeCache<TransactionRecord> { return toReturn; } - public Collection<TransactionRecord> getTransactions(Branch branch) throws OseeCoreException { + public Collection<TransactionRecord> getTransactions(Branch branch) { return Collections.emptyList(); } diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java index 6e975e21131..2f3101e4ab1 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java @@ -35,7 +35,7 @@ public final class ArtifactTypeAttributesField extends AbstractOseeField<Map<IOs } @Override - public Map<IOseeBranch, Collection<AttributeType>> get() throws OseeCoreException { + public Map<IOseeBranch, Collection<AttributeType>> get() { return new HashMap<IOseeBranch, Collection<AttributeType>>(validityMap); } diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java index a626d69bbb7..7914888a53a 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.core.model.internal.fields; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.AbstractOseeField; /** @@ -26,12 +25,12 @@ public class AssociatedArtifactField extends AbstractOseeField<Integer> { } @Override - public Integer get() throws OseeCoreException { + public Integer get() { return artId; } @Override - public void set(Integer artId) throws OseeCoreException { + public void set(Integer artId) { boolean wasDifferent = isDifferent(get(), artId); if (wasDifferent) { this.artId = artId; diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java index 5d848892fd3..9dedc1789b5 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.model.internal.fields; import java.util.Collection; import java.util.HashSet; -import org.eclipse.osee.framework.core.exception.OseeCoreException; /** * @author Roberto E. Escobar @@ -24,7 +23,7 @@ public class BranchAliasesField extends CollectionField<String> { } @Override - protected Collection<String> checkInput(Collection<String> input) throws OseeCoreException { + protected Collection<String> checkInput(Collection<String> input) { Collection<String> items = new HashSet<String>(); for (String alias : input) { items.add(alias.toLowerCase()); diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java index b3ea4273cde..466f73925fe 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java @@ -28,7 +28,7 @@ public class CollectionField<T> extends AbstractOseeField<Collection<T>> { } @Override - public Collection<T> get() throws OseeCoreException { + public Collection<T> get() { return items; } @@ -43,6 +43,8 @@ public class CollectionField<T> extends AbstractOseeField<Collection<T>> { isDirty |= isDifferent; } + @SuppressWarnings("unused") + //OseeCoreException is thrown by inherited class protected Collection<T> checkInput(Collection<T> input) throws OseeCoreException { return input; } diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java index cf925a8111f..b1e7b51706b 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java @@ -13,12 +13,9 @@ package org.eclipse.osee.framework.core.model.internal.fields; import java.util.Collection; import java.util.HashSet; import java.util.Set; -import java.util.logging.Level; import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.OseeEnumEntry; -import org.eclipse.osee.framework.core.model.internal.Activator; import org.eclipse.osee.framework.core.util.Conditions; -import org.eclipse.osee.framework.logging.OseeLog; /** * @author Roberto E. Escobar @@ -87,12 +84,8 @@ public class EnumEntryField extends CollectionField<OseeEnumEntry> { @Override public void clearDirty() { super.clearDirty(); - try { - for (OseeEnumEntry entry : get()) { - entry.clearDirty(); - } - } catch (OseeCoreException ex) { - OseeLog.log(Activator.class, Level.SEVERE, ex); + for (OseeEnumEntry entry : get()) { + entry.clearDirty(); } } @@ -100,15 +93,11 @@ public class EnumEntryField extends CollectionField<OseeEnumEntry> { public boolean isDirty() { boolean result = super.isDirty(); if (!result) { - try { - for (OseeEnumEntry entry : get()) { - if (entry.isDirty()) { - result = true; - break; - } + for (OseeEnumEntry entry : get()) { + if (entry.isDirty()) { + result = true; + break; } - } catch (OseeCoreException ex) { - OseeLog.log(Activator.class, Level.SEVERE, ex); } } return result; diff --git a/plugins/org.eclipse.osee.framework.core.server.test/src/org/eclipse/osee/framework/core/server/test/internal/BuildTypeIdentifierTest.java b/plugins/org.eclipse.osee.framework.core.server.test/src/org/eclipse/osee/framework/core/server/test/internal/BuildTypeIdentifierTest.java index 21a7f6b11f1..1a293bccdc7 100644 --- a/plugins/org.eclipse.osee.framework.core.server.test/src/org/eclipse/osee/framework/core/server/test/internal/BuildTypeIdentifierTest.java +++ b/plugins/org.eclipse.osee.framework.core.server.test/src/org/eclipse/osee/framework/core/server/test/internal/BuildTypeIdentifierTest.java @@ -15,13 +15,13 @@ import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; -import org.junit.Assert; import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.server.internal.BuildInfo; import org.eclipse.osee.framework.core.server.internal.BuildTypeIdentifier; import org.eclipse.osee.framework.core.server.test.mocks.MockBuildTypeDataProvider; import org.eclipse.osee.framework.jdk.core.util.Compare; import org.eclipse.osee.framework.jdk.core.util.Lib; +import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -104,7 +104,7 @@ public class BuildTypeIdentifierTest { } @Parameters - public static Collection<Object[]> data() throws OseeCoreException { + public static Collection<Object[]> data() { List<Object[]> data = new ArrayList<Object[]>(); data.add(new Object[] {"null version && null xml data", null, "N/A", NULL_XML, false, EMPTY_INFOS}); diff --git a/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetDbBranchDataImport.java b/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetDbBranchDataImport.java index 50ab964ed64..5e58b690009 100644 --- a/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetDbBranchDataImport.java +++ b/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetDbBranchDataImport.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.database.init; import java.io.File; -import java.io.IOException; import java.net.URI; import java.net.URL; import java.util.ArrayList; @@ -72,8 +71,8 @@ public class SkynetDbBranchDataImport implements IDbInitializationTask { //TODO not yet supported importData.getSelectedBranches(); HttpBranchExchange.importBranches(importFile.toURI().toASCIIString(), true, true); } catch (OseeDataStoreException ex) { - OseeLog.logf(DatabaseInitActivator.class, Level.SEVERE, - ex, "Exception while importing branch: [%s]", importData); + OseeLog.logf(DatabaseInitActivator.class, Level.SEVERE, ex, "Exception while importing branch: [%s]", + importData); throw ex; } } @@ -120,7 +119,7 @@ public class SkynetDbBranchDataImport implements IDbInitializationTask { return toReturn; } - private File getExchangeFile(String bundleName, String exchangeFile) throws IOException, OseeCoreException { + private File getExchangeFile(String bundleName, String exchangeFile) throws OseeCoreException { if (exchangeFile.endsWith("zip") != true) { throw new OseeArgumentException(String.format("Branch data file is invalid [%s] ", exchangeFile)); } diff --git a/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetTypesEnumGenerator.java b/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetTypesEnumGenerator.java index 3bd4a3eae19..4f66f843b38 100644 --- a/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetTypesEnumGenerator.java +++ b/plugins/org.eclipse.osee.framework.database.init/src/org/eclipse/osee/framework/database/init/SkynetTypesEnumGenerator.java @@ -170,7 +170,7 @@ public class SkynetTypesEnumGenerator implements RowProcessor { * import Artifacts */ @Override - public void processRow(String[] row) throws ClassNotFoundException { + public void processRow(String[] row) { if (done) { return; } @@ -189,7 +189,7 @@ public class SkynetTypesEnumGenerator implements RowProcessor { } } - private void addAttributeType(String[] row) throws ClassNotFoundException { + private void addAttributeType(String[] row) { // String attrBaseType = row[0]; // String attrProviderType = row[1]; String attributeName = row[2]; diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java index 6804db6c5b9..428f32a3640 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java @@ -49,6 +49,8 @@ public abstract class AbstractDbTxOperation extends AbstractOperation { // default implementation } + @SuppressWarnings("unused") + //OseeCoreException is thrown by inheriting class protected void handleTxFinally(IProgressMonitor monitor) throws OseeCoreException { // default implementation } diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java index 6995edd5313..e7dd4ddf1ee 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java @@ -55,7 +55,11 @@ public abstract class DbTransaction { * This convenience method is provided in case child classes have a portion of code that needs to execute always at * the end of the transaction, regardless of exceptions. <br/> * <b>Override to add additional code to finally block</b> + * + * @throws OseeCoreException */ + @SuppressWarnings("unused") + //OseeCoreException is thrown by inheriting class protected void handleTxFinally() throws OseeCoreException { // override to add additional code to finally } diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java index 94e56e2dbaf..e39b5136077 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java @@ -10,14 +10,12 @@ *******************************************************************************/ package org.eclipse.osee.framework.database.operation; -import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.osee.framework.core.enums.ModificationType; import org.eclipse.osee.framework.core.enums.TxChange; import org.eclipse.osee.framework.core.exception.OseeCoreException; -import org.eclipse.osee.framework.core.exception.OseeExceptions; import org.eclipse.osee.framework.core.exception.OseeStateException; import org.eclipse.osee.framework.core.operation.OperationLogger; import org.eclipse.osee.framework.database.IOseeDatabaseService; @@ -74,7 +72,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { super(databaseService, "Consolidate Relations", Activator.PLUGIN_ID, logger); } - private void init() throws OseeCoreException, IOException { + private void init() throws OseeCoreException { previousRelationTypeId = -1; previousArtifactAId = -1; previousArtiafctBId = -1; @@ -97,21 +95,17 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { @Override protected void doTxWork(IProgressMonitor monitor, OseeConnection connection) throws OseeCoreException { this.connection = connection; - try { - log("Consolidating relations:"); - init(); + log("Consolidating relations:"); + init(); - findObsoleteRelations(); + findObsoleteRelations(); - log("gamma join size: " + gammaJoin.size()); + log("gamma join size: " + gammaJoin.size()); - determineAffectedAddressing(); + determineAffectedAddressing(); - updateGammas(); - log("...done."); - } catch (IOException ex) { - OseeExceptions.wrapAndThrow(ex); - } + updateGammas(); + log("...done."); } private void findObsoleteRelations() throws OseeCoreException { @@ -149,7 +143,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { } } - private void determineAffectedAddressing() throws OseeCoreException, IOException { + private void determineAffectedAddressing() throws OseeCoreException { gammaJoin.store(); try { @@ -232,7 +226,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { return ignore || netModType == ModificationType.ARTIFACT_DELETED && modificationType == ModificationType.DELETED; } - private void updateGammas() throws OseeCoreException, IOException { + private void updateGammas() throws OseeCoreException { log("Number of txs rows deleted: " + ConnectionHandler.runBatchUpdate(connection, DELETE_TXS, addressingToDelete)); log("Number of relation rows deleted: " + ConnectionHandler.runBatchUpdate(connection, DELETE_RELATIONS, @@ -242,7 +236,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { updateAddressingData)); } - private void writeAddressingBackup(long obsoleteGammaId, int transactionId, long netGammaId, int modType, TxChange txCurrent) throws IOException { + private void writeAddressingBackup(long obsoleteGammaId, int transactionId, long netGammaId, int modType, TxChange txCurrent) { StringBuilder strB = new StringBuilder(30); strB.append(obsoleteGammaId); diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java index 38efe03be22..ed3ac2885f1 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java @@ -39,7 +39,7 @@ public class ParseWindowsDirectoryListingOperation extends AbstractDbTxOperation } @Override - protected void doTxWork(IProgressMonitor monitor, OseeConnection connection) throws OseeCoreException { + protected void doTxWork(IProgressMonitor monitor, OseeConnection connection) { log(); log("Parsing windows directory listing:"); diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/RulesLogHandler.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/RulesLogHandler.java index ab0557461ce..c8acc8bdfde 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/RulesLogHandler.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/RulesLogHandler.java @@ -15,7 +15,6 @@ import java.io.IOException; import java.util.logging.Handler; import java.util.logging.LogRecord; import javax.xml.parsers.ParserConfigurationException; -import javax.xml.transform.TransformerException; import org.apache.xml.serialize.OutputFormat; import org.eclipse.osee.framework.jdk.core.util.xml.Jaxp; import org.w3c.dom.Document; @@ -59,8 +58,6 @@ public class RulesLogHandler extends Handler { Jaxp.writeXmlDocument(document, outFile, format); } catch (IOException ex) { ex.printStackTrace(); - } catch (TransformerException ex) { - ex.printStackTrace(); } } } diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStoreWriter.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStoreWriter.java index db194632fc5..10f493c4503 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStoreWriter.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStoreWriter.java @@ -57,7 +57,7 @@ public class PropertyStoreWriter { writer.close(); } - public void save(PropertyStore store, Writer writer) throws IOException { + public void save(PropertyStore store, Writer writer) { XMLWriter internalWriter = new XMLWriter(writer); internalSave(store, internalWriter); } diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/StringDataSource.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/StringDataSource.java index ca232899ad1..45df739d4dc 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/StringDataSource.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/StringDataSource.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.jdk.core.util; import java.io.ByteArrayInputStream; -import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.activation.DataSource; @@ -33,7 +32,7 @@ public class StringDataSource implements DataSource { } @Override - public InputStream getInputStream() throws IOException { + public InputStream getInputStream() { return new ByteArrayInputStream(data.getBytes()); } @@ -43,7 +42,7 @@ public class StringDataSource implements DataSource { } @Override - public OutputStream getOutputStream() throws IOException { + public OutputStream getOutputStream() { throw new UnsupportedOperationException(); } diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/CharBackedInputStream.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/CharBackedInputStream.java index b656e0a0c73..6a79e7f58ac 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/CharBackedInputStream.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/CharBackedInputStream.java @@ -49,12 +49,12 @@ public class CharBackedInputStream extends InputStream implements Appendable { } @Override - public void flush() throws IOException { + public void flush() { // } @Override - public void close() throws IOException { + public void close() { // } @@ -158,13 +158,13 @@ public class CharBackedInputStream extends InputStream implements Appendable { } @Override - public Appendable append(char c) throws IOException { + public Appendable append(char c) { throw new UnsupportedOperationException( "doing this one character at a time would be so inefficient it would defeat the whole purpose of this class"); } @Override - public int available() throws IOException { + public int available() { int count = 0; for (ByteBuffer backer : backers) { count += backer.array().length; diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java index 3b00d582661..4a21f84c911 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/AbstractSaxHandler.java @@ -19,15 +19,15 @@ import org.xml.sax.helpers.DefaultHandler; /** * <p> * If you want to preserve CDATA sections you need to follow this pattern:<br/> - * + * * <pre> * XMLReader xmlReader = XMLReaderFactory.createXMLReader(); * xmlReader.setContentHandler(this); * xmlReader.setProperty("http://xml.org/sax/properties/lexical-handler", this); //This is the important part * </pre> - * + * * </p> - * + * * @author Ryan D. Brooks */ public abstract class AbstractSaxHandler extends DefaultHandler implements LexicalHandler { @@ -45,7 +45,7 @@ public abstract class AbstractSaxHandler extends DefaultHandler implements Lexic } @Override - public void characters(char[] ch, int start, int length) throws SAXException { + public void characters(char[] ch, int start, int length) { if (maxContentLength > 0 && contents.length() + length > maxContentLength) { return; // don't add more characters if doing so will make the content too long } @@ -85,37 +85,37 @@ public abstract class AbstractSaxHandler extends DefaultHandler implements Lexic } @Override - public void comment(char[] ch, int start, int length) throws SAXException { + public void comment(char[] ch, int start, int length) { //Do nothing } @Override - public void endCDATA() throws SAXException { + public void endCDATA() { contents.append("]]>"); } @Override - public void endDTD() throws SAXException { + public void endDTD() { //Do nothing } @Override - public void endEntity(String name) throws SAXException { + public void endEntity(String name) { //Do nothing } @Override - public void startCDATA() throws SAXException { + public void startCDATA() { contents.append("<![CDATA["); } @Override - public void startDTD(String name, String publicId, String systemId) throws SAXException { + public void startDTD(String name, String publicId, String systemId) { //Do nothing } @Override - public void startEntity(String name) throws SAXException { + public void startEntity(String name) { //Do nothing } }
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordMlTableWriter.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordMlTableWriter.java index 17480fa155d..0161d512825 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordMlTableWriter.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordMlTableWriter.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.jdk.core.util.io.xml; import java.io.IOException; -import java.nio.charset.CharacterCodingException; /** * @author Jeff C. Phillips @@ -31,7 +30,7 @@ public class WordMlTableWriter extends AbstractSheetWriter { private int columnSize; private boolean startTable; - public WordMlTableWriter(Appendable str) throws CharacterCodingException { + public WordMlTableWriter(Appendable str) { this.str = str; } @@ -81,6 +80,6 @@ public class WordMlTableWriter extends AbstractSheetWriter { } @Override - public void endWorkbook() throws IOException { + public void endWorkbook() { } } diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordSaxHandler.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordSaxHandler.java index 50c7ca1deac..039521360fd 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordSaxHandler.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/WordSaxHandler.java @@ -35,7 +35,7 @@ public class WordSaxHandler extends AbstractSaxHandler { } @Override - public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String qName, Attributes attributes) { if (localName.equalsIgnoreCase("hdr")) { inHeader = true; } else if (localName.equalsIgnoreCase("ftr")) { diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/windows/Registry.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/windows/Registry.java index 3c7724750b7..847009c956a 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/windows/Registry.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/windows/Registry.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.jdk.core.util.windows; import java.io.File; -import java.io.IOException; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.eclipse.osee.framework.jdk.core.util.Processes; @@ -94,7 +93,7 @@ public class Registry { } } - public static boolean isRegVersion(double lowerBound, double upperBound) throws IOException { + public static boolean isRegVersion(double lowerBound, double upperBound) { boolean matched = false; String out = Processes.executeCommandToString(Registry.REG_HELP_CMD); @@ -112,7 +111,7 @@ public class Registry { return matched; } - public static RegVersion getVersion() throws IOException { + public static RegVersion getVersion() { Registry r = new Registry(); RegVersion regVersion = null; if (Registry.isRegVersion(1.00, 1.99)) { @@ -123,7 +122,7 @@ public class Registry { return regVersion; } - public static String[] getValue(RegVersion version, String root, String path, String key) throws IOException { + public static String[] getValue(RegVersion version, String root, String path, String key) { String toReturn[] = null; String out = Processes.executeCommandToString(version.getQueryCmd(root, path, key)); @@ -146,7 +145,7 @@ public class Registry { return toReturn; } - public static boolean prependRegistryValue(File updatedReg, String root, String path, String key, String value) throws IOException { + public static boolean prependRegistryValue(File updatedReg, String root, String path, String key, String value) { RegVersion version = Registry.getVersion(); @@ -181,7 +180,7 @@ public class Registry { return true; } - public static boolean prependRegistryValue(String root, String path, String key, String value) throws IOException { + public static boolean prependRegistryValue(String root, String path, String key, String value) { RegVersion version = Registry.getVersion(); @@ -198,11 +197,7 @@ public class Registry { } public static void main(String[] args) { - try { - Registry.prependRegistryValue(Registry.HKEY_CURRENT_USER, "environment", "path", "HI THERE"); - } catch (IOException ex) { - ex.printStackTrace(); - } + Registry.prependRegistryValue(Registry.HKEY_CURRENT_USER, "environment", "path", "HI THERE"); } } diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java index 842a4d2c91d..4c0daffb203 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java @@ -497,7 +497,7 @@ public class Jaxp { * @param document The XML document to output * @param file Where to put the output */ - public static void writeXmlDocument(Document document, File file) throws TransformerException, IOException { + public static void writeXmlDocument(Document document, File file) throws IOException { writeXmlDocument(document, file, getCompactFormat(document)); } @@ -509,7 +509,7 @@ public class Jaxp { * @param prettyOutput If true, turns on indention so the output is more easily readable, if False turns indention * off to save space. */ - public static void writeXmlDocument(Document document, File file, OutputFormat format) throws TransformerException, IOException { + public static void writeXmlDocument(Document document, File file, OutputFormat format) throws IOException { BufferedWriter out = new BufferedWriter(new FileWriter(file)); outputXmlDocument(document, out, format); out.close(); diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Xml.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Xml.java index 23bb2a1fff3..af66e1ec7ef 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Xml.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Xml.java @@ -17,7 +17,6 @@ import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.parsers.ParserConfigurationException; -import javax.xml.transform.TransformerException; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathExpressionException; @@ -269,7 +268,7 @@ public class Xml { return newElement; } - public final static String restartNumberingWhenPreparingToEditWithWord(InputStream myInputStream) throws XPathExpressionException, ParserConfigurationException, TransformerException, SAXException, IOException { + public final static String restartNumberingWhenPreparingToEditWithWord(InputStream myInputStream) throws XPathExpressionException, ParserConfigurationException, SAXException, IOException { SimpleNamespaceContext mySimpleNamespaceContext = new SimpleNamespaceContext(); addNamespacesForWordMarkupLanguage(myXPath, mySimpleNamespaceContext); Document myDocument = Jaxp.readXmlDocumentNamespaceAware(myInputStream); diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/parser/GenericParser.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/parser/GenericParser.java index 1a2767eeb59..f70b1c2deb3 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/parser/GenericParser.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/parser/GenericParser.java @@ -53,7 +53,7 @@ public class GenericParser extends AbstractSaxHandler { } @Override - public void startElementFound(String uri, String localName, String qName, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String qName, Attributes attributes) { if (localName.equalsIgnoreCase(toFind)) { startCollecting = true; collectedTree = new Tree<XmlNode>(new XmlNode(localName, attributes)); @@ -71,7 +71,7 @@ public class GenericParser extends AbstractSaxHandler { } @Override - public void endElementFound(String uri, String localName, String qName) throws SAXException { + public void endElementFound(String uri, String localName, String qName) { if (localName.equalsIgnoreCase(toFind)) { startCollecting = false; notifyTreeCollected(collectedTree); @@ -146,17 +146,17 @@ public class GenericParser extends AbstractSaxHandler { xmlReader.setErrorHandler(new ErrorHandler() { @Override - public void warning(SAXParseException exception) throws SAXException { + public void warning(SAXParseException exception) { exception.printStackTrace(); } @Override - public void fatalError(SAXParseException exception) throws SAXException { + public void fatalError(SAXParseException exception) { exception.printStackTrace(); } @Override - public void error(SAXParseException exception) throws SAXException { + public void error(SAXParseException exception) { exception.printStackTrace(); } diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/JiniLookupPlatformRunnable.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/JiniLookupPlatformRunnable.java index 85c86b9f43d..e731ab08638 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/JiniLookupPlatformRunnable.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/JiniLookupPlatformRunnable.java @@ -14,15 +14,12 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.URL; -import java.rmi.RemoteException; -import java.util.logging.Level; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.Platform; import org.eclipse.equinox.app.IApplication; import org.eclipse.equinox.app.IApplicationContext; import org.eclipse.osee.framework.jdk.core.util.CmdLineArgs; import org.eclipse.osee.framework.jini.utility.StartJini; -import org.eclipse.osee.framework.logging.OseeLog; import org.osgi.framework.Bundle; public class JiniLookupPlatformRunnable implements IApplication { @@ -63,11 +60,7 @@ public class JiniLookupPlatformRunnable implements IApplication { @Override public void stop() { if (jiniService != null) { - try { - jiniService.kill(); - } catch (RemoteException ex) { - OseeLog.log(JiniPlugin.class, Level.SEVERE, ex); - } + jiniService.kill(); } } diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java index 47b2bb0b1ab..6bda8901747 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/event/RemoteEventHandler.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.jini.event; -import java.rmi.RemoteException; import net.jini.core.lookup.ServiceItem; import org.eclipse.osee.framework.jini.discovery.IServiceLookupListener; import org.eclipse.osee.framework.jini.event.old.IOseeRemoteSubscriber; @@ -35,12 +34,12 @@ public class RemoteEventHandler implements IServiceLookupListener, IOseeRemoteSu } @Override - public boolean receiveEventType(String event) throws RemoteException { + public boolean receiveEventType(String event) { return false; } @Override - public boolean receiveEventGuid(String event) throws RemoteException { + public boolean receiveEventGuid(String event) { return false; } } diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/lease/OseeLeaseGrantor.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/lease/OseeLeaseGrantor.java index e3aa029fb70..cc785b5898a 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/lease/OseeLeaseGrantor.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/lease/OseeLeaseGrantor.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.jini.lease; import java.lang.ref.WeakReference; -import java.rmi.RemoteException; import java.rmi.server.ExportException; import java.util.Collections; import java.util.HashMap; @@ -91,7 +90,7 @@ public class OseeLeaseGrantor implements ILeaseGrantor { * * @return Return lease reference. */ - public OseeLease newLease(Object consumer, long duration) throws LeaseDeniedException, ExportException { + public OseeLease newLease(Object consumer, long duration) throws LeaseDeniedException { // debug.report("New Lease:" + consumer + " @" + new Date()); long actualDuration = checkDuration(duration); OseeLease lease = new OseeLease(thisRemoteReference, consumer, actualDuration); @@ -106,7 +105,7 @@ public class OseeLeaseGrantor implements ILeaseGrantor { * @see org.eclipse.osee.framework.jini.lease.ILeaseGrantor#renewRequest */ @Override - public void renewRequest(Lease lease, Object consumer, long duration) throws LeaseDeniedException, UnknownLeaseException, RemoteException { + public void renewRequest(Lease lease, Object consumer, long duration) throws LeaseDeniedException, UnknownLeaseException { // debug.report("Lease renewRequest: " + consumer + " @" + new Date()); @@ -128,7 +127,7 @@ public class OseeLeaseGrantor implements ILeaseGrantor { } @Override - public void cancelRequest(Lease lease, Object consumer) throws UnknownLeaseException, RemoteException { + public void cancelRequest(Lease lease, Object consumer) { // debug.report("Lease cancelRequest: " + consumer + " @" + new Date()); if (leaseStore.remove(consumer) != null) { leasee.get().onLeaseCompleted(consumer); diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniJoinManager.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniJoinManager.java index b8315e8b39a..9656b8177b2 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniJoinManager.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniJoinManager.java @@ -68,7 +68,7 @@ public class JiniJoinManager implements IRegistrarListener { serviceDataStore.addListener(this); } - public JiniJoinManager(ServiceID serviceID, IService service, Entry[] entry) throws IOException { + public JiniJoinManager(ServiceID serviceID, IService service, Entry[] entry) { proxy = service; this.entry = entry; this.serviceID = serviceID; @@ -79,7 +79,7 @@ public class JiniJoinManager implements IRegistrarListener { serviceDataStore.addListener(this); } - public void terminate() throws UnknownLeaseException, RemoteException { + public void terminate() throws RemoteException { renewTimer.cancel(); for (int i = 0; i < registrations.size(); i++) { ServiceRegistration registration = registrations.get(i); diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java index e046cc91a8b..49d7d449e6f 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java @@ -17,7 +17,6 @@ import java.util.ArrayList; import java.util.Dictionary; import java.util.List; import net.jini.core.entry.Entry; -import net.jini.core.lease.UnknownLeaseException; import net.jini.core.lookup.ServiceID; import net.jini.id.Uuid; import net.jini.id.UuidFactory; @@ -208,8 +207,6 @@ public abstract class JiniService implements IService { } else { System.out.println("service already removed JiniService.deregister"); } - } catch (UnknownLeaseException ex) { - ex.printStackTrace(); } catch (RemoteException ex) { ex.printStackTrace(); } catch (Exception ex) { @@ -224,7 +221,7 @@ public abstract class JiniService implements IService { } @Override - public ServiceID getServiceID() throws RemoteException { + public ServiceID getServiceID() { return serviceID; } diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/utility/StartJini.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/utility/StartJini.java index 20b909aafbf..620893f803c 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/utility/StartJini.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/utility/StartJini.java @@ -20,7 +20,6 @@ import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.InetAddress; import java.net.UnknownHostException; -import java.rmi.RemoteException; import java.util.ArrayList; import java.util.Arrays; import java.util.Dictionary; @@ -235,7 +234,7 @@ public class StartJini extends JiniService { } @Override - public void kill() throws RemoteException { + public void kill() { OseeLog.log(StartJini.class, Level.INFO, "De-registering Core Jini Service..."); deregisterService(); killProcesses(); diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ClientInstallInfo.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ClientInstallInfo.java index 074fee6f3ec..3fd87c10fbb 100644 --- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ClientInstallInfo.java +++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ClientInstallInfo.java @@ -15,7 +15,6 @@ import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.jdk.core.util.io.xml.AbstractSaxHandler; import org.xml.sax.Attributes; import org.xml.sax.InputSource; -import org.xml.sax.SAXException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; @@ -89,7 +88,7 @@ class ClientInstallInfo { } @Override - public void startElementFound(String uri, String localName, String name, Attributes attributes) throws SAXException { + public void startElementFound(String uri, String localName, String name, Attributes attributes) { if (localName.equalsIgnoreCase("install")) { info.os = attributes.getValue("os"); if (info.os != null) { @@ -102,7 +101,7 @@ class ClientInstallInfo { } @Override - public void endElementFound(String uri, String localName, String name) throws SAXException { + public void endElementFound(String uri, String localName, String name) { try { if (localName.equalsIgnoreCase("location")) { info.execPath = getContents(); diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java index 90bb004c8a3..990bc81ffc2 100644 --- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java +++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java @@ -62,7 +62,7 @@ public class ResourceManagerServlet extends SecureOseeHttpServlet { } @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { InputStream inputStream = null; try { Pair<String, Boolean> parameters = HttpRequestDecoder.fromGetRequest(request); @@ -120,7 +120,7 @@ public class ResourceManagerServlet extends SecureOseeHttpServlet { } @Override - protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + protected void doPut(HttpServletRequest request, HttpServletResponse response) { int result = HttpServletResponse.SC_BAD_REQUEST; try { String[] args = HttpRequestDecoder.fromPutRequest(request); @@ -148,7 +148,7 @@ public class ResourceManagerServlet extends SecureOseeHttpServlet { } @Override - protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + protected void doDelete(HttpServletRequest request, HttpServletResponse response) { int result = HttpServletResponse.SC_BAD_REQUEST; try { String path = HttpRequestDecoder.fromDeleteRequest(request); diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/AtsResourceProvider.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/AtsResourceProvider.java index ebdded46000..949a63b9d58 100644 --- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/AtsResourceProvider.java +++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/AtsResourceProvider.java @@ -67,7 +67,7 @@ public class AtsResourceProvider implements IResourceProvider { } @Override - public int delete(IResourceLocator locator) throws OseeCoreException { + public int delete(IResourceLocator locator) { throw new UnsupportedOperationException(); } @@ -77,7 +77,7 @@ public class AtsResourceProvider implements IResourceProvider { } @Override - public IResourceLocator save(IResourceLocator locator, IResource resource, PropertyStore options) throws OseeCoreException { + public IResourceLocator save(IResourceLocator locator, IResource resource, PropertyStore options) { throw new UnsupportedOperationException(); } diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/XmlMessage.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/XmlMessage.java index e7769b374c6..7350afdbd11 100644 --- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/XmlMessage.java +++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ats/XmlMessage.java @@ -197,7 +197,7 @@ public class XmlMessage { } @Override - public InputStream getContent() throws OseeCoreException { + public InputStream getContent() { return inputStream; } diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/data/HttpSystemManagerCreationInfo.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/data/HttpSystemManagerCreationInfo.java index 6141fd5690b..a11f961d667 100644 --- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/data/HttpSystemManagerCreationInfo.java +++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/data/HttpSystemManagerCreationInfo.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.manager.servlet.data; import javax.servlet.http.HttpServletRequest; -import org.eclipse.osee.framework.core.exception.OseeArgumentException; /** * @author Donald G. Dunne @@ -21,7 +20,7 @@ public class HttpSystemManagerCreationInfo { private final String userId; private final String sessionId; - public HttpSystemManagerCreationInfo(HttpServletRequest req) throws OseeArgumentException { + public HttpSystemManagerCreationInfo(HttpServletRequest req) { userId = req.getParameter("userId"); sessionId = req.getParameter("sessionId"); } diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java index df320dc3af6..38ac0e8bc6d 100644 --- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java +++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/Sample.java @@ -90,7 +90,7 @@ public class Sample implements IServiceLookupListener, Serializable { private static final long serialVersionUID = 2251382843127874925L; @Override - public void onEvent(ISkynetEvent[] events) throws RemoteException { + public void onEvent(ISkynetEvent[] events) { System.out.println("Events received at " + new Date()); for (ISkynetEvent event : events) { diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java index cc084b84a76..a9fa56198da 100644 --- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java +++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.osee.framework.messaging.event.skynet.service; -import java.rmi.RemoteException; import java.util.Collections; import java.util.Dictionary; import java.util.HashSet; @@ -100,12 +99,12 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi } @Override - public void register(ISkynetEventListener listener, IEventFilter... filters) throws RemoteException { + public void register(ISkynetEventListener listener, IEventFilter... filters) { addListeners(listener, filters); } @Override - public void deregister(ISkynetEventListener listener, IEventFilter... filters) throws RemoteException { + public void deregister(ISkynetEventListener listener, IEventFilter... filters) { removeListeners(listener, filters); } @@ -163,7 +162,7 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi } @Override - public void kick(final ISkynetEvent[] events, final ISkynetEventListener... except) throws RemoteException { + public void kick(final ISkynetEvent[] events, final ISkynetEventListener... except) { if (events != null && events.length > 0) { executorService.submit(new EventDispatchRunnable(this, getEventAndListenersToSendTo(events, toFilteredSet(except)))); @@ -179,7 +178,7 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi } @Override - public void kill() throws RemoteException { + public void kill() { try { this.deregisterService(); this.commitSuicide(); @@ -189,7 +188,7 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi } @Override - public boolean isAlive() throws RemoteException { + public boolean isAlive() { return true; } }
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java index 19f7f93a84b..6da68422c68 100644 --- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java +++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventServicePlatformRunnable.java @@ -10,14 +10,10 @@ *******************************************************************************/ package org.eclipse.osee.framework.messaging.event.skynet.service; -import java.rmi.RemoteException; -import java.util.logging.Level; import org.eclipse.core.runtime.Platform; import org.eclipse.equinox.app.IApplication; import org.eclipse.equinox.app.IApplicationContext; import org.eclipse.osee.framework.jdk.core.util.CmdLineArgs; -import org.eclipse.osee.framework.logging.OseeLog; -import org.eclipse.osee.framework.messaging.event.skynet.SkynetEventPlugin; /** * @author Robert A. Fisher @@ -41,10 +37,6 @@ public class SkynetEventServicePlatformRunnable implements IApplication { @Override public void stop() { - try { - skynetEventService.kill(); - } catch (RemoteException ex) { - OseeLog.log(SkynetEventPlugin.class, Level.SEVERE, ex); - } + skynetEventService.kill(); } } diff --git a/plugins/org.eclipse.osee.framework.messaging.test/src/org/eclipse/osee/framework/messaging/internal/BaseBrokerTesting.java b/plugins/org.eclipse.osee.framework.messaging.test/src/org/eclipse/osee/framework/messaging/internal/BaseBrokerTesting.java index 16d086b067e..04475ecc9bb 100644 --- a/plugins/org.eclipse.osee.framework.messaging.test/src/org/eclipse/osee/framework/messaging/internal/BaseBrokerTesting.java +++ b/plugins/org.eclipse.osee.framework.messaging.test/src/org/eclipse/osee/framework/messaging/internal/BaseBrokerTesting.java @@ -169,11 +169,7 @@ public class BaseBrokerTesting { protected final MessageService getMessaging() { MessageService messaging = null; - try { - messaging = messageServiceProviderImpl.getMessageService(); - } catch (OseeCoreException ex) { - fail("Failed to get messaging service. " + ex.getMessage()); - } + messaging = messageServiceProviderImpl.getMessageService(); assertTrue(messaging != null); return messaging; } diff --git a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/MessageServiceProviderImpl.java b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/MessageServiceProviderImpl.java index 66166b9394c..8c14f4122af 100644 --- a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/MessageServiceProviderImpl.java +++ b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/MessageServiceProviderImpl.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.messaging.internal; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.messaging.MessageService; import org.eclipse.osee.framework.messaging.MessageServiceProvider; import org.eclipse.osee.framework.messaging.internal.activemq.ConnectionNodeFactoryImpl; @@ -43,7 +42,7 @@ public class MessageServiceProviderImpl implements MessageServiceProvider { } @Override - public MessageService getMessageService() throws OseeCoreException { + public MessageService getMessageService() { return messageService; } } diff --git a/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/MockLocatorProvider.java b/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/MockLocatorProvider.java index 8590939e363..2c94adb70da 100644 --- a/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/MockLocatorProvider.java +++ b/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/MockLocatorProvider.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.resource.management.test.mocks; import org.eclipse.osee.framework.resource.management.IResourceLocator; import org.eclipse.osee.framework.resource.management.IResourceLocatorProvider; -import org.eclipse.osee.framework.resource.management.exception.MalformedLocatorException; /** * @author Roberto E. Escobar @@ -26,12 +25,12 @@ public class MockLocatorProvider implements IResourceLocatorProvider { } @Override - public IResourceLocator generateResourceLocator(String seed, String name) throws MalformedLocatorException { + public IResourceLocator generateResourceLocator(String seed, String name) { return new MockResourceLocator(getSupportedProtocol(), seed, name, null); } @Override - public IResourceLocator getResourceLocator(String path) throws MalformedLocatorException { + public IResourceLocator getResourceLocator(String path) { return new MockResourceLocator(getSupportedProtocol(), null, null, path); } diff --git a/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/ResourceProviderAdaptor.java b/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/ResourceProviderAdaptor.java index 4dbb687807a..1514a41d035 100644 --- a/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/ResourceProviderAdaptor.java +++ b/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/mocks/ResourceProviderAdaptor.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.resource.management.test.mocks; import java.util.Collection; import java.util.Collections; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.jdk.core.type.PropertyStore; import org.eclipse.osee.framework.resource.management.IResource; import org.eclipse.osee.framework.resource.management.IResourceLocator; @@ -24,17 +23,17 @@ import org.eclipse.osee.framework.resource.management.IResourceProvider; public class ResourceProviderAdaptor implements IResourceProvider { @Override - public IResource acquire(IResourceLocator locator, PropertyStore options) throws OseeCoreException { + public IResource acquire(IResourceLocator locator, PropertyStore options) { return null; } @Override - public int delete(IResourceLocator locator) throws OseeCoreException { + public int delete(IResourceLocator locator) { return 0; } @Override - public boolean exists(IResourceLocator locator) throws OseeCoreException { + public boolean exists(IResourceLocator locator) { return false; } @@ -44,7 +43,7 @@ public class ResourceProviderAdaptor implements IResourceProvider { } @Override - public IResourceLocator save(IResourceLocator locator, IResource resource, PropertyStore options) throws OseeCoreException { + public IResourceLocator save(IResourceLocator locator, IResource resource, PropertyStore options) { return null; } diff --git a/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/util/ResourceTest.java b/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/util/ResourceTest.java index b126ec967c5..14ea5f01cec 100644 --- a/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/util/ResourceTest.java +++ b/plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/util/ResourceTest.java @@ -10,9 +10,7 @@ *******************************************************************************/ package org.eclipse.osee.framework.resource.management.test.util; -import java.io.IOException; import java.net.URI; -import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -54,22 +52,22 @@ public class ResourceTest { } @Test - public void testIsCompressed() throws IOException { + public void testIsCompressed() { Assert.assertEquals(expectedCompressed, resource.isCompressed()); } @Test - public void testGetName() throws IOException { + public void testGetName() { Assert.assertEquals(expectedName, resource.getName()); } @Test - public void testGetLocation() throws IOException { + public void testGetLocation() { Assert.assertEquals(rawPath, resource.getLocation().toASCIIString()); } @Parameters - public static Collection<Object[]> data() throws URISyntaxException { + public static Collection<Object[]> data() { List<Object[]> data = new ArrayList<Object[]>(); data.add(new Object[] {"file://1/sample.file", "sample.file", true}); data.add(new Object[] {"http://www.url.com", "www.url.com", false,}); diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/CompressedResourceBridge.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/CompressedResourceBridge.java index 8b8bed173fd..3e3970abfc4 100644 --- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/CompressedResourceBridge.java +++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/CompressedResourceBridge.java @@ -13,7 +13,6 @@ package org.eclipse.osee.framework.resource.management.internal; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.net.URI; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.resource.management.IResource; /** @@ -31,7 +30,7 @@ public class CompressedResourceBridge implements IResource { } @Override - public InputStream getContent() throws OseeCoreException { + public InputStream getContent() { return new ByteArrayInputStream(backing); } diff --git a/plugins/org.eclipse.osee.framework.resource.provider.attribute.test/src/org/eclipse/osee/framework/resource/provider/attribute/test/AttributeProviderTest.java b/plugins/org.eclipse.osee.framework.resource.provider.attribute.test/src/org/eclipse/osee/framework/resource/provider/attribute/test/AttributeProviderTest.java index 6b4c5f47e00..1ac9bf71cad 100644 --- a/plugins/org.eclipse.osee.framework.resource.provider.attribute.test/src/org/eclipse/osee/framework/resource/provider/attribute/test/AttributeProviderTest.java +++ b/plugins/org.eclipse.osee.framework.resource.provider.attribute.test/src/org/eclipse/osee/framework/resource/provider/attribute/test/AttributeProviderTest.java @@ -45,7 +45,7 @@ public class AttributeProviderTest { @Ignore @Test - public void testOps() throws OseeCoreException, URISyntaxException { + public void testOps() { // IResourceProvider provider = new AttributeProvider(); Assert.fail("Implement Remaining Tests"); // provider.acquire(locator, options) diff --git a/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java b/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java index 75df77b3ab3..80bbff73d18 100644 --- a/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java +++ b/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java @@ -41,7 +41,7 @@ public class AttributeProvider implements IResourceProvider { BASE_PATH = OseeServerProperties.getOseeApplicationServerData(); } - private URI resolve(IResourceLocator locator) throws OseeCoreException { + private URI resolve(IResourceLocator locator) { StringBuilder builder = new StringBuilder(BASE_PATH + File.separator + SUPPORTED_PROTOCOL + File.separator); builder.append(locator.getRawPath()); return new File(builder.toString()).toURI(); @@ -53,7 +53,7 @@ public class AttributeProvider implements IResourceProvider { } @Override - public int delete(IResourceLocator locator) throws OseeCoreException { + public int delete(IResourceLocator locator) { int toReturn = IResourceManager.FAIL; File file = new File(resolve(locator)); if (file == null || file.exists() != true) { @@ -102,7 +102,7 @@ public class AttributeProvider implements IResourceProvider { } @Override - public boolean exists(IResourceLocator locator) throws OseeCoreException { + public boolean exists(IResourceLocator locator) { URI uri = resolve(locator); File testFile = new File(uri); return testFile.exists(); diff --git a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/conversion/DbResource.java b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/conversion/DbResource.java index 44a0c917c87..97c6fce568b 100644 --- a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/conversion/DbResource.java +++ b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/conversion/DbResource.java @@ -17,7 +17,6 @@ import java.net.URISyntaxException; import java.net.URLEncoder; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.resource.management.IResource; /** @@ -65,7 +64,7 @@ public class DbResource implements IResource { } @Override - public InputStream getContent() throws OseeCoreException { + public InputStream getContent() { return inputStream; } diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactHridSearch.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactHridSearch.java index d48e11f2070..793aba41d90 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactHridSearch.java +++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactHridSearch.java @@ -13,7 +13,6 @@ package org.eclipse.osee.framework.skynet.core.artifact.search; import static org.eclipse.osee.framework.skynet.core.artifact.search.DeprecatedOperator.EQUAL; import java.util.List; import org.eclipse.osee.framework.core.data.IOseeBranch; -import org.eclipse.osee.framework.core.exception.OseeCoreException; /** * @author Robert A. Fisher @@ -44,7 +43,7 @@ public class ArtifactHridSearch implements ISearchPrimitive { } @Override - public String getCriteriaSql(List<Object> dataList, IOseeBranch branch) throws OseeCoreException { + public String getCriteriaSql(List<Object> dataList, IOseeBranch branch) { String sql = "osee_artifact.human_readable_id" + operator + "?"; dataList.add(humanReadableId); diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactTypeSearch.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactTypeSearch.java index 34645ce9019..64076abe6db 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactTypeSearch.java +++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactTypeSearch.java @@ -12,7 +12,6 @@ package org.eclipse.osee.framework.skynet.core.artifact.search; import java.util.List; import org.eclipse.osee.framework.core.data.IOseeBranch; -import org.eclipse.osee.framework.core.exception.OseeCoreException; /** * @author Robert A. Fisher @@ -35,7 +34,7 @@ public class ArtifactTypeSearch implements ISearchPrimitive { } @Override - public String getCriteriaSql(List<Object> dataList, IOseeBranch branch) throws OseeCoreException { + public String getCriteriaSql(List<Object> dataList, IOseeBranch branch) { String sql = "osee_artifact_type.name" + operation + " ? AND osee_artifact_type.art_type_id = osee_artifact.art_type_id"; dataList.add(typeName); diff --git a/plugins/org.eclipse.osee.framework.svn/src/org/eclipse/osee/framework/svn/CheckoutJob.java b/plugins/org.eclipse.osee.framework.svn/src/org/eclipse/osee/framework/svn/CheckoutJob.java index fa979ec8385..f75687bccba 100644 --- a/plugins/org.eclipse.osee.framework.svn/src/org/eclipse/osee/framework/svn/CheckoutJob.java +++ b/plugins/org.eclipse.osee.framework.svn/src/org/eclipse/osee/framework/svn/CheckoutJob.java @@ -14,7 +14,6 @@ import java.util.logging.Level; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; @@ -39,7 +38,7 @@ public class CheckoutJob extends Job { try { ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() { @Override - public void run(IProgressMonitor monitor) throws CoreException { + public void run(IProgressMonitor monitor) { VersionControl.getInstance().checkOut(fileToCheckout, monitor); } }, this.getRule(), IWorkspace.AVOID_UPDATE, monitor); diff --git a/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java b/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java index 444ca7c0908..39b4bea7a7d 100644 --- a/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java +++ b/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java @@ -13,7 +13,6 @@ package org.eclipse.osee.framework.ui.branch.graph.core; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.osee.framework.core.data.IOseeBranch; import org.eclipse.osee.framework.core.enums.CoreBranches; -import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.core.model.TransactionRecord; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IPersistableElement; @@ -31,7 +30,7 @@ public class BranchGraphEditorInput implements IEditorInput { this.branch = branch; } - public BranchGraphEditorInput() throws OseeCoreException { + public BranchGraphEditorInput() { this(CoreBranches.SYSTEM_ROOT); } diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/input/OseeDataTypeConverter.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/input/OseeDataTypeConverter.java index 27d23e0fd78..db346c8ff42 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/input/OseeDataTypeConverter.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/input/OseeDataTypeConverter.java @@ -32,19 +32,19 @@ public class OseeDataTypeConverter implements IOseeDataTypeProcessor { } @Override - public boolean doesArtifactSuperTypeExist(String artifactSuperTypeName) throws OseeCoreException { + public boolean doesArtifactSuperTypeExist(String artifactSuperTypeName) { return false; } @Override - public void onArtifactType(boolean isAbstract, String artifactTypeName) throws OseeCoreException { + public void onArtifactType(boolean isAbstract, String artifactTypeName) { ArtifactDataType artifactDataType = new ArtifactDataType(artifactTypeName, null); this.dataTypeSource.add(artifactDataType); } @Override - public void onArtifactTypeInheritance(String ancestor, Collection<String> descendants) throws OseeCoreException { + public void onArtifactTypeInheritance(String ancestor, Collection<String> descendants) { } @@ -62,11 +62,11 @@ public class OseeDataTypeConverter implements IOseeDataTypeProcessor { } @Override - public void onAttributeValidity(String attributeName, String artifactSuperTypeName, Collection<String> concreteTypes) throws OseeCoreException { + public void onAttributeValidity(String attributeName, String artifactSuperTypeName, Collection<String> concreteTypes) { } @Override - public void onRelationType(String name, String sideAName, String sideBName, String artifactTypeSideA, String artifactTypeSideB, String multiplicity, String ordered, String defaultOrderTypeGuid) throws OseeCoreException { + public void onRelationType(String name, String sideAName, String sideBName, String artifactTypeSideA, String artifactTypeSideB, String multiplicity, String ordered, String defaultOrderTypeGuid) { RelationDataType relationDataType = new RelationDataType("", name, "", "", Boolean.valueOf(ordered), "", sideAName, sideBName); @@ -74,7 +74,7 @@ public class OseeDataTypeConverter implements IOseeDataTypeProcessor { } @Override - public void onRelationValidity(String artifactTypeName, String relationTypeName, int sideAMax, int sideBMax) throws OseeCoreException { + public void onRelationValidity(String artifactTypeName, String relationTypeName, int sideAMax, int sideBMax) { } public DataTypeSource getODMModel() { @@ -82,7 +82,7 @@ public class OseeDataTypeConverter implements IOseeDataTypeProcessor { } @Override - public void onFinish() throws OseeCoreException { + public void onFinish() { } diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/xml/BaseXmlDataType.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/xml/BaseXmlDataType.java index f17ec1e3c9d..fb5133e6b0d 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/xml/BaseXmlDataType.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/xml/BaseXmlDataType.java @@ -62,21 +62,27 @@ public abstract class BaseXmlDataType<T extends DataType> { protected abstract T newDataTypeInstance(); + @SuppressWarnings("unused") + //XMLStreamException thrown by inheriting classes. protected void populateFromAttributes(T dataType, String tag, Map<String, String> attributes) throws XMLStreamException { if (tag.equals(getElementName())) { dataType.setName(attributes.get("name")); } } + @SuppressWarnings("unused") + //XMLStreamException thrown by inheriting classes. protected void populateFromTextElement(T dataType, String tag, String text) throws XMLStreamException { } + @SuppressWarnings("unused") + //XMLStreamException thrown by inheriting classes. protected void populateFromCDataElement(T dataType, String tag, String text) throws XMLStreamException { } - private Map<String, String> getAttributes(XMLStreamReader reader) throws XMLStreamException { + private Map<String, String> getAttributes(XMLStreamReader reader) { int count = reader.getAttributeCount(); Map<String, String> attributes = new HashMap<String, String>(); for (int index = 0; index < count; index++) { diff --git a/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/artifact/ArtifactPromptChangeTest.java b/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/artifact/ArtifactPromptChangeTest.java index 9edcff0fd96..d73ce649b7e 100644 --- a/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/artifact/ArtifactPromptChangeTest.java +++ b/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/artifact/ArtifactPromptChangeTest.java @@ -60,7 +60,7 @@ public class ArtifactPromptChangeTest { private static class MockAccessPolicyHandler implements AccessPolicy { @Override - public PermissionStatus hasArtifactTypePermission(IOseeBranch branch, Collection<? extends IArtifactType> artifactTypes, PermissionEnum permission, Level level) throws OseeCoreException { + public PermissionStatus hasArtifactTypePermission(IOseeBranch branch, Collection<? extends IArtifactType> artifactTypes, PermissionEnum permission, Level level) { return new PermissionStatus(); } @@ -70,27 +70,27 @@ public class ArtifactPromptChangeTest { } @Override - public PermissionStatus hasBranchPermission(IOseeBranch branch, PermissionEnum permission, Level level) throws OseeCoreException { + public PermissionStatus hasBranchPermission(IOseeBranch branch, PermissionEnum permission, Level level) { return new PermissionStatus(); } @Override - public PermissionStatus hasAttributeTypePermission(Collection<? extends IBasicArtifact<?>> artifacts, IAttributeType attributeType, PermissionEnum permission, Level level) throws OseeCoreException { + public PermissionStatus hasAttributeTypePermission(Collection<? extends IBasicArtifact<?>> artifacts, IAttributeType attributeType, PermissionEnum permission, Level level) { return new PermissionStatus(); } @Override - public PermissionStatus hasArtifactPermission(Collection<? extends IBasicArtifact<?>> artifacts, PermissionEnum permission, Level level) throws OseeCoreException { + public PermissionStatus hasArtifactPermission(Collection<? extends IBasicArtifact<?>> artifacts, PermissionEnum permission, Level level) { return new PermissionStatus(); } @Override - public PermissionStatus canRelationBeModified(IBasicArtifact<?> subject, Collection<? extends IBasicArtifact<?>> toBeRelated, IRelationTypeSide relationTypeSide, Level level) throws OseeCoreException { + public PermissionStatus canRelationBeModified(IBasicArtifact<?> subject, Collection<? extends IBasicArtifact<?>> toBeRelated, IRelationTypeSide relationTypeSide, Level level) { return new PermissionStatus(); } @Override - public void removePermissions(IOseeBranch branch) throws OseeCoreException { + public void removePermissions(IOseeBranch branch) { } } diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditor.java index 2bc8d28f6e6..8aaa1732525 100644 --- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditor.java +++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditor.java @@ -13,7 +13,6 @@ package org.eclipse.osee.framework.ui.skynet.blam; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.jobs.IJobChangeEvent; import org.eclipse.core.runtime.jobs.JobChangeAdapter; -import org.eclipse.osee.framework.core.exception.OseeArgumentException; import org.eclipse.osee.framework.jdk.core.util.Lib; import org.eclipse.osee.framework.logging.OseeLevel; import org.eclipse.osee.framework.logging.OseeLog; @@ -86,11 +85,11 @@ public class BlamEditor extends FormEditor implements IDirtiableEditor { return super.getAdapter(adapter); } - private VariableMap getBlamVariableMap() throws OseeArgumentException { + private VariableMap getBlamVariableMap() { return overviewPage.getInput(); } - public void executeBlam() throws OseeArgumentException { + public void executeBlam() { getEditorInput().getBlamOperation().execute(overviewPage.getReporter(), getBlamVariableMap(), new BlamEditorExecutionAdapter()); } diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/DynamicBlamOperation.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/DynamicBlamOperation.java index c55873b1d81..1eb0ae67867 100644 --- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/DynamicBlamOperation.java +++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/DynamicBlamOperation.java @@ -38,7 +38,7 @@ public abstract class DynamicBlamOperation { operationFactory.createInstallOperation(site.getCurrentConfiguredSite(), feature, null, null, null); } - public void init() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, OseeArgumentException { + public void init() throws IllegalArgumentException, NoSuchMethodException, OseeArgumentException { mainMethod = findMainMethod(getMainMethodName()); String[] parameterNames = getParameterNames(); @@ -59,7 +59,7 @@ public abstract class DynamicBlamOperation { mainMethod.invoke(this, actualParameters); } - private Method findMainMethod(String mainMethodName) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { + private Method findMainMethod(String mainMethodName) throws IllegalArgumentException, NoSuchMethodException { Class<? extends DynamicBlamOperation> classRep = getClass(); Method[] methods = classRep.getDeclaredMethods(); // get only the methods declared directly in the given class diff --git a/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AWorkspace.java b/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AWorkspace.java index 9dc890b7426..ed1fda98861 100644 --- a/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AWorkspace.java +++ b/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AWorkspace.java @@ -11,7 +11,6 @@ package org.eclipse.osee.framework.ui.ws; import java.io.File; -import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.eclipse.core.resources.IContainer; @@ -185,7 +184,7 @@ public final class AWorkspace { return null; } - public static IResource findWorkspaceFile(String fileName) throws IOException { + public static IResource findWorkspaceFile(String fileName) { IContainer ws = ResourcesPlugin.getWorkspace().getRoot(); List<IResource> resources = new ArrayList<IResource>(); recursiveFileFind(fileName, ws, resources); @@ -206,7 +205,7 @@ public final class AWorkspace { } } - public static List<IResource> findWorkspaceFileMatch(String regex) throws IOException { + public static List<IResource> findWorkspaceFileMatch(String regex) { IContainer ws = ResourcesPlugin.getWorkspace().getRoot(); List<IResource> resources = new ArrayList<IResource>(); recursiveFileFindMatch(regex, ws, resources); |