Skip to content

Commit 696a5f6

Browse files
committed
spotless
1 parent ca9a8a7 commit 696a5f6

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

  • iotdb-core/datanode/src

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/realtime/disruptor/RingBuffer.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,7 @@ public <A> void publishEvent(EventTranslator<E, A> translator, A arg0) {
220220
* @return {@code true} if the event is published, {@code false} if the publish is aborted
221221
*/
222222
public <A> boolean publishEvent(
223-
final EventTranslator<E, A> translator,
224-
final A arg0,
225-
final BooleanSupplier abortCondition) {
223+
final EventTranslator<E, A> translator, final A arg0, final BooleanSupplier abortCondition) {
226224
final long sequence = sequencer.next(1, abortCondition);
227225
if (sequence == Sequence.INITIAL_VALUE) {
228226
return false;

iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/source/dataregion/realtime/disruptor/DisruptorShutdownTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ public void testUnexpectedInterruptDoesNotStopProcessor() throws Exception {
119119
final AtomicReference<Thread> processorThreadReference = new AtomicReference<>();
120120
final ThreadFactory threadFactory =
121121
runnable -> {
122-
final Thread thread =
123-
new Thread(runnable, "pipe-disruptor-unexpected-interrupt-test");
122+
final Thread thread = new Thread(runnable, "pipe-disruptor-unexpected-interrupt-test");
124123
processorThreadReference.set(thread);
125124
return thread;
126125
};

0 commit comments

Comments
 (0)