Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary semicolons #584

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/emissary/core/DiffCheckConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/emissary/kff/ChecksumCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/emissary/kff/Ssdeep.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/emissary/pickup/file/FilePickUpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/emissary/util/LineTokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/emissary/util/shell/ReadOutputLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
Loading