Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2011-08-03 15:40:17 -0400
committerRyan D. Brooks2011-08-03 15:40:17 -0400
commit0783b58cce6c815a3bda232b3ff703e33ff74253 (patch)
tree1582491b8d0b763b21419aa3a41b876bc76bcde0 /plugins/org.eclipse.osee.framework.database
parent3ae4b4e26658854aac1204d7522c60f64c61799d (diff)
downloadorg.eclipse.osee-0783b58cce6c815a3bda232b3ff703e33ff74253.tar.gz
org.eclipse.osee-0783b58cce6c815a3bda232b3ff703e33ff74253.tar.xz
org.eclipse.osee-0783b58cce6c815a3bda232b3ff703e33ff74253.zip
refactor: Remove superfluous null checks of IOseeStatement
Diffstat (limited to 'plugins/org.eclipse.osee.framework.database')
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateArtifactVersionTxOperation.java12
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java8
2 files changed, 5 insertions, 15 deletions
diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateArtifactVersionTxOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateArtifactVersionTxOperation.java
index 0dda1cc6e55..2f9b90cab8a 100644
--- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateArtifactVersionTxOperation.java
+++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateArtifactVersionTxOperation.java
@@ -118,9 +118,7 @@ public class ConsolidateArtifactVersionTxOperation extends AbstractDbTxOperation
ModificationType.getMod(chStmt.getInt("mod_type")), TxChange.getChangeType(chStmt.getInt("tx_current"))));
}
} finally {
- if (chStmt != null) {
- chStmt.close();
- }
+ chStmt.close();
}
}
@@ -249,9 +247,7 @@ public class ConsolidateArtifactVersionTxOperation extends AbstractDbTxOperation
}
}
} finally {
- if (chStmt != null) {
- chStmt.close();
- }
+ chStmt.close();
}
}
@@ -305,9 +301,7 @@ public class ConsolidateArtifactVersionTxOperation extends AbstractDbTxOperation
previuosTransactionId = transactionId;
}
} finally {
- if (chStmt != null) {
- chStmt.close();
- }
+ chStmt.close();
}
writeAddressingChanges(archived, true);
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 645e3c2abfc..94e56e2dbaf 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
@@ -131,9 +131,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation {
}
}
} finally {
- if (chStmt != null) {
- chStmt.close();
- }
+ chStmt.close();
}
}
@@ -189,9 +187,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation {
writeAddressingBackup(obsoleteGammaId, transactionId, netGammaId, modType, txCurrent);
}
} finally {
- if (chStmt != null) {
- chStmt.close();
- }
+ chStmt.close();
}
gammaJoin.delete();
}

Back to the top