From c15d73f56125c9301363fe5a79f34aa5defbff65 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Tue, 18 Feb 2020 15:48:37 -0500 Subject: [PATCH] 6040 fix comments to make more clear --- .../org/sleuthkit/autopsy/filequery/FileSearch.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java b/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java index 218046f3f4..ea25c65ce5 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java @@ -248,12 +248,12 @@ class FileSearch { } /** - * Get a summary for the specified AbstractFile if no TextSummarizers exist get - * the first bit of the file. + * Get a summary for the specified AbstractFile. If no TextSummarizers exist get + * the beginning of the file. * * @param file The AbstractFile to summarize. * - * @return The summary or first bit of the specified file as a String. + * @return The summary or beginning of the specified file as a String. */ @NbBundle.Messages({"FileSearch.documentSummary.noPreview=No preview available.", "FileSearch.documentSummary.noBytes=No bytes read for document, unable to display preview."}) @@ -271,7 +271,7 @@ class FileSearch { } } if (localSummarizer == null) { - //no summarizer was found just grab the first bit of the file + //no summarizer was found just grab the beginning of the file return getFirstLines(file); } else { try { @@ -285,11 +285,11 @@ class FileSearch { } /** - * Get the first bit of text from the specified AbstractFile. + * Get the beginning of text from the specified AbstractFile. * * @param file The AbstractFile to get text from. * - * @return The first bit of text from the specified AbstractFile. + * @return The beginning of text from the specified AbstractFile. */ private static String getFirstLines(AbstractFile file) { try (Reader reader = TextExtractorFactory.getExtractor(file, null).getReader()) {