squash some warnings

This commit is contained in:
Roland Kuhn 2016-01-17 16:37:45 +01:00
parent 3140e72265
commit e5baba2b29
42 changed files with 146 additions and 161 deletions

View file

@ -450,6 +450,7 @@ public class SourceTest extends StreamTest {
final JavaTestKit probe = new JavaTestKit(system);
Source<String, Cancellable> tickSource = Source.tick(FiniteDuration.create(1, TimeUnit.SECONDS),
FiniteDuration.create(500, TimeUnit.MILLISECONDS), "tick");
@SuppressWarnings("unused")
Cancellable cancellable = tickSource.to(Sink.foreach(new Procedure<String>() {
public void apply(String elem) {
probe.getRef().tell(elem, ActorRef.noSender());