diff --git a/src/main/java/emissary/core/DiffCheckConfiguration.java b/src/main/java/emissary/core/DiffCheckConfiguration.java index 491a1c8d07..bb4c55c947 100644 --- a/src/main/java/emissary/core/DiffCheckConfiguration.java +++ b/src/main/java/emissary/core/DiffCheckConfiguration.java @@ -12,7 +12,7 @@ public class DiffCheckConfiguration { * Possible configuration options */ public enum DiffCheckOptions { - DATA, TIMESTAMP, INTERNAL_ID, TRANSFORM_HISTORY; + DATA, TIMESTAMP, INTERNAL_ID, TRANSFORM_HISTORY } /** diff --git a/src/main/java/emissary/kff/ChecksumCalculator.java b/src/main/java/emissary/kff/ChecksumCalculator.java index 03fa2e2942..2c94174468 100755 --- a/src/main/java/emissary/kff/ChecksumCalculator.java +++ b/src/main/java/emissary/kff/ChecksumCalculator.java @@ -175,7 +175,7 @@ public ChecksumResults digest(final SeekableByteChannelFactory sbcf) { final byte[] b = new byte[1024]; for (final MessageDigest d : digest) { - try (final InputStream is = Channels.newInputStream(sbcf.create());) { + try (final InputStream is = Channels.newInputStream(sbcf.create())) { d.reset(); int bytesRead; @@ -190,7 +190,7 @@ public ChecksumResults digest(final SeekableByteChannelFactory sbcf) { } if (crc != null) { - try (final InputStream is = Channels.newInputStream(sbcf.create());) { + try (final InputStream is = Channels.newInputStream(sbcf.create())) { crc.reset(); int bytesRead; diff --git a/src/main/java/emissary/kff/Ssdeep.java b/src/main/java/emissary/kff/Ssdeep.java index 4b78707f26..9de7bd3485 100644 --- a/src/main/java/emissary/kff/Ssdeep.java +++ b/src/main/java/emissary/kff/Ssdeep.java @@ -128,7 +128,7 @@ public SsContext(@Nullable final byte[] data) { public SsContext(final SeekableByteChannelFactory sbcf) { long expectedInputLength = 0; - try (final SeekableByteChannel sbc = sbcf.create();) { + try (final SeekableByteChannel sbc = sbcf.create()) { expectedInputLength = sbc.size(); } catch (final IOException ioe) { // Ignore @@ -283,7 +283,7 @@ public SpamSumSignature generateHash(final SeekableByteChannelFactory sbcf) { beginHashing(); final RollingState rollState = new RollingState(); - try (final InputStream is = Channels.newInputStream(sbcf.create());) { + try (final InputStream is = Channels.newInputStream(sbcf.create())) { final byte[] b = new byte[1024]; int bytesRead; diff --git a/src/main/java/emissary/pickup/file/FilePickUpClient.java b/src/main/java/emissary/pickup/file/FilePickUpClient.java index c1438ab54b..637691fe51 100755 --- a/src/main/java/emissary/pickup/file/FilePickUpClient.java +++ b/src/main/java/emissary/pickup/file/FilePickUpClient.java @@ -166,7 +166,6 @@ protected String fixFilePath(String path) { protected File findFileInHoldingArea(File f, @Nullable String eatPrefix) { if (holdingArea != null) { String fpart = f.getName(); - ; if (eatPrefix != null) { fpart = f.getPath().substring(eatPrefix.length()); } diff --git a/src/main/java/emissary/util/LineTokenizer.java b/src/main/java/emissary/util/LineTokenizer.java index 97c123ddc9..57bc4d036f 100755 --- a/src/main/java/emissary/util/LineTokenizer.java +++ b/src/main/java/emissary/util/LineTokenizer.java @@ -181,7 +181,6 @@ public byte[] nextTokenBytes() { for (; end < data.length && data[end] != delim; end++) { } - ; byte[] tok = new byte[end - index]; System.arraycopy(data, index, tok, 0, end - index); diff --git a/src/main/java/emissary/util/shell/ReadOutputLogger.java b/src/main/java/emissary/util/shell/ReadOutputLogger.java index a33fc1cb34..9555f8e3ab 100755 --- a/src/main/java/emissary/util/shell/ReadOutputLogger.java +++ b/src/main/java/emissary/util/shell/ReadOutputLogger.java @@ -50,13 +50,13 @@ void runImpl() { } } while (aLine != null && !this.finished); } catch (IOException iox) { - ; // ignore + // ignore } try { this.inputReader.close(); this.bufferedReader.close(); } catch (IOException iox) { - ; // ignore + // ignore } }