From 17f73cf098eb969a511cb6391f71f2aa2056e213 Mon Sep 17 00:00:00 2001 From: Kelly Kelly <kelly@basistech.com> Date: Wed, 27 May 2020 17:28:03 -0400 Subject: [PATCH] Cleaned up formatting --- .../sleuthkit/datamodel/SleuthkitCase.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index a22141667..66b3fbb98 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -2148,7 +2148,7 @@ private CaseDbSchemaVersionNumber updateFromSchema8dot4toSchema8dot5(CaseDbSchem throw new TskCoreException("Failed to retrieve the default tag_set_id from DB"); } } - + // Add data_source_obj_id column to the tsk_files table. For newly created cases // this column will have a foreign key constraint on the data_source_info table. // There does not seem to be a reasonable way to do this in an upgrade, @@ -2171,7 +2171,7 @@ private CaseDbSchemaVersionNumber updateFromSchema8dot4toSchema8dot5(CaseDbSchem } finally { closeStatement(updateStatement); } - + return new CaseDbSchemaVersionNumber(8, 5); } finally { @@ -6098,7 +6098,7 @@ public FileSystem addFileSystem(long parentObjId, long imgOffset, TskData.TSK_FS // Get the data source object ID long dataSourceId = getDataSourceObjectId(connection, newObjId); - + // Add a row to tsk_fs_info // INSERT INTO tsk_fs_info (obj_id, data_source_obj_id, img_offset, fs_type, block_size, block_count, root_inum, first_inum, last_inum, display_name) PreparedStatement preparedStatement = connection.getPreparedStatement(PREPARED_STATEMENT.INSERT_FS_INFO); @@ -7906,13 +7906,13 @@ Directory getDirectoryById(long id, FileSystem parentFs) throws TskCoreException * @param image Image to lookup FileSystem for * * @return Collection of FileSystems in the image - * + * * @throws TskCoreException */ - public Collection<FileSystem> getImageFileSystems(Image image) throws TskCoreException { + public Collection<FileSystem> getImageFileSystems(Image image) throws TskCoreException { List<FileSystem> fileSystems = new ArrayList<>(); CaseDbConnection connection = connections.getConnection(); - + acquireSingleUserCaseReadLock(); Statement s = null; ResultSet rs = null; @@ -11324,7 +11324,7 @@ void addLayoutFileRangeJNI(long objId, long byteStart, long byteLen, releaseSingleUserCaseWriteLock(); } } - + /** * Stores a pair of object ID and its type */ @@ -12896,15 +12896,16 @@ public LocalFile addLocalFile(String fileName, String localPath, public AddImageProcess makeAddImageProcess(String timezone, boolean addUnallocSpace, boolean noFatFsOrphans) { return this.caseHandle.initAddImageProcess(timezone, addUnallocSpace, noFatFsOrphans, "", this); } - + /** * Helper to return FileSystems in an Image * * @param image Image to lookup FileSystem for * * @return Collection of FileSystems in the image - * - * @deprecated Use getImageFileSystems which throws an exception if an error occurs. + * + * @deprecated Use getImageFileSystems which throws an exception if an error + * occurs. */ @Deprecated public Collection<FileSystem> getFileSystems(Image image) { -- GitLab