Skip to content
Snippets Groups Projects
Commit 63d168cb authored by Sean Owen's avatar Sean Owen
Browse files

[MINOR][BUILD] Fix current lint-java failures

## What changes were proposed in this pull request?

Fixes current failures in dev/lint-java

## How was this patch tested?

Existing linter, tests.

Author: Sean Owen <sowen@cloudera.com>

Closes #18757 from srowen/LintJava.
parent a5a31899
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ public class TransportRequestHandlerSuite {
private List<GenericFutureListener> listeners = new ArrayList<>();
private boolean success;
public ExtendedChannelPromise(Channel channel) {
ExtendedChannelPromise(Channel channel) {
super(channel);
success = false;
}
......@@ -127,7 +127,9 @@ public class TransportRequestHandlerSuite {
listeners.forEach(listener -> {
try {
listener.operationComplete(this);
} catch (Exception e) { }
} catch (Exception e) {
// do nothing
}
});
}
}
......
......@@ -120,14 +120,16 @@ final class ShuffleExternalSorter extends MemoryConsumer {
this.taskContext = taskContext;
this.numPartitions = numPartitions;
// Use getSizeAsKb (not bytes) to maintain backwards compatibility if no units are provided
this.fileBufferSizeBytes = (int) (long) conf.get(package$.MODULE$.SHUFFLE_FILE_BUFFER_SIZE()) * 1024;
this.fileBufferSizeBytes =
(int) (long) conf.get(package$.MODULE$.SHUFFLE_FILE_BUFFER_SIZE()) * 1024;
this.numElementsForSpillThreshold =
conf.getLong("spark.shuffle.spill.numElementsForceSpillThreshold", 1024 * 1024 * 1024);
this.writeMetrics = writeMetrics;
this.inMemSorter = new ShuffleInMemorySorter(
this, initialSize, conf.getBoolean("spark.shuffle.sort.useRadixSort", true));
this.peakMemoryUsedBytes = getMemoryUsage();
this.diskWriteBufferSize = (int) (long) conf.get(package$.MODULE$.SHUFFLE_DISK_WRITE_BUFFER_SIZE());
this.diskWriteBufferSize =
(int) (long) conf.get(package$.MODULE$.SHUFFLE_DISK_WRITE_BUFFER_SIZE());
}
/**
......
......@@ -322,7 +322,7 @@ public final class ArrowColumnVector extends ReadOnlyColumnVector {
anyNullsSet = numNulls > 0;
}
private static abstract class ArrowVectorAccessor {
private abstract static class ArrowVectorAccessor {
private final ValueVector vector;
private final ValueVector.Accessor nulls;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment