From a0406c0ffe945267e50893225544ac3999916fca Mon Sep 17 00:00:00 2001 From: Ann Priestman <apriestman@basistech.com> Date: Wed, 6 Feb 2019 12:20:30 -0500 Subject: [PATCH] Remove unused statement and fix typo. --- bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index f3dda4937..6ae044265 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -5334,7 +5334,6 @@ public Image addImage(TskData.TSK_IMG_TYPE_ENUM type, long sectorSize, long size public VolumeSystem addVolumeSystem(long parentObjId, TskData.TSK_VS_TYPE_ENUM type, long imgOffset, long blockSize, CaseDbTransaction transaction) throws TskCoreException{ acquireSingleUserCaseWriteLock(); - Statement statement = null; try { // Insert a row for the VolumeSystem into the tsk_objects table. CaseDbConnection connection = transaction.getConnection(); @@ -5356,7 +5355,6 @@ public VolumeSystem addVolumeSystem(long parentObjId, TskData.TSK_VS_TYPE_ENUM t throw new TskCoreException(String.format("Error creating volume system with parent ID %d and image offset %d", parentObjId, imgOffset), ex); } finally { - closeStatement(statement); releaseSingleUserCaseWriteLock(); } } @@ -5455,7 +5453,7 @@ public FileSystem addFileSystem(long parentObjId, long imgOffset, TskData.TSK_FS preparedStatement.setString(9, displayName); connection.executeUpdate(preparedStatement); - // Create the new Volume object + // Create the new FileSystem object return new FileSystem(this, newObjId, displayName, imgOffset, type, blockSize, blockCount, rootInum, firstInum, lastInum); } catch (SQLException ex) { -- GitLab