Skip to content

Commit 57ebe8b

Browse files
[Gradle Release Plugin] - pre tag commit: 'v1.5.9'.
1 parent 0fca101 commit 57ebe8b

File tree

3 files changed

+21
-24
lines changed

3 files changed

+21
-24
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=1.5.9-SNAPSHOT
1+
version=1.5.9
22

33
GROUP=com.spotify.mobius
44

mobius-core/src/test/java/com/spotify/mobius/MobiusLoopControllerTest.java

+5-9
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,10 @@
4141
import com.spotify.mobius.runners.ImmediateWorkRunner;
4242
import com.spotify.mobius.runners.WorkRunner;
4343
import com.spotify.mobius.runners.WorkRunners;
44-
import java.util.concurrent.ExecutorService;
45-
import java.util.concurrent.Executors;
4644
import java.util.concurrent.Semaphore;
4745
import java.util.concurrent.TimeUnit;
4846
import java.util.concurrent.atomic.AtomicBoolean;
4947
import java.util.concurrent.atomic.AtomicReference;
50-
import java.util.concurrent.locks.Lock;
51-
import java.util.concurrent.locks.ReentrantLock;
52-
import javax.annotation.Nonnull;
5348
import org.junit.Before;
5449
import org.junit.Test;
5550
import org.mockito.InOrder;
@@ -638,10 +633,11 @@ private static class KnownThreadWorkRunner implements WorkRunner {
638633
@Override
639634
@SuppressWarnings("FutureReturnValueIgnored")
640635
public void post(final Runnable runnable) {
641-
delegate.post(() -> {
642-
workerThread = Thread.currentThread();
643-
runnable.run();
644-
});
636+
delegate.post(
637+
() -> {
638+
workerThread = Thread.currentThread();
639+
runnable.run();
640+
});
645641
}
646642

647643
@Override

mobius-core/src/test/java/com/spotify/mobius/MobiusLoopDisposalBehavior.java

+15-14
Original file line numberDiff line numberDiff line change
@@ -293,21 +293,22 @@ public WorkRunner get() {
293293
return WorkRunners.from(Executors.newFixedThreadPool(4));
294294
}
295295
});
296-
final Thread thread = new Thread(
297-
new Runnable() {
298-
@Override
299-
public void run() {
300-
for (int i = 0; i < 100; i++) {
301-
mobiusLoop = builder.startFrom("foo");
302-
try {
303-
Thread.sleep(random.nextInt(10));
304-
} catch (InterruptedException e) {
305-
throw new RuntimeException(e);
296+
final Thread thread =
297+
new Thread(
298+
new Runnable() {
299+
@Override
300+
public void run() {
301+
for (int i = 0; i < 100; i++) {
302+
mobiusLoop = builder.startFrom("foo");
303+
try {
304+
Thread.sleep(random.nextInt(10));
305+
} catch (InterruptedException e) {
306+
throw new RuntimeException(e);
307+
}
308+
mobiusLoop.dispose();
309+
}
306310
}
307-
mobiusLoop.dispose();
308-
}
309-
}
310-
});
311+
});
311312
thread.start();
312313

313314
for (int i = 0; i < 1000; i++) {

0 commit comments

Comments
 (0)