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.database
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.database')
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java2
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java4
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java28
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java2
4 files changed, 18 insertions, 18 deletions
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 6804db6c5b..428f32a364 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 6995edd531..e7dd4ddf1e 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 94e56e2dba..e39b513607 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 38efe03be2..ed3ac2885f 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:");

Back to the top