Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn F. Cook2011-08-08 16:41:21 -0400
committerRyan D. Brooks2011-08-08 16:41:21 -0400
commit0276a25446344462b279c122f44d4e020cb61780 (patch)
tree516043a39b1bdd4b0c4249eb2317c8f55e38e9ec /plugins/org.eclipse.osee.framework.branch.management
parentf5b92c1a4b7e2b15175187dbc8f98a4dc10c7124 (diff)
downloadorg.eclipse.osee-0276a25446344462b279c122f44d4e020cb61780.tar.gz
org.eclipse.osee-0276a25446344462b279c122f44d4e020cb61780.tar.xz
org.eclipse.osee-0276a25446344462b279c122f44d4e020cb61780.zip
refactor[bgz_354193]: Remove unused exception declarations
Diffstat (limited to 'plugins/org.eclipse.osee.framework.branch.management')
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java3
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/BaseExportImportSaxHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/handler/MetaDataSaxHandler.java3
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TxDetailsHandler.java5
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_0TypeHandler.java5
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2ArtifactVersionHandler.java5
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/V0_9_2TxDetailsHandler.java5
7 files changed, 12 insertions, 16 deletions
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 f1f9ac5f61..9b5cc30a8e 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 383120bd66..c0bfc51110 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 91e76faa58..ca599e17dc 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 01647a0ee0..f0a0a5bf7d 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 bf4cbbdc84..88b36c268f 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 c4fa6a5f7a..179a6dc7df 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 643c3b7083..c27d4c14ba 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);

Back to the top