javadsl should use java types #23251

This commit is contained in:
Patryk Najda 2017-07-03 14:39:00 +02:00 committed by Johan Andrén
parent 9bd27a2459
commit fe4c376a5e
6 changed files with 16 additions and 16 deletions

View file

@ -635,9 +635,9 @@ public class FlowTest extends StreamTest {
public void mustBeAbleToUseBatchWeighted() throws Exception {
final TestKit probe = new TestKit(system);
final List<String> input = Arrays.asList("A", "B", "C");
final Flow<String, String, NotUsed> flow = Flow.of(String.class).batchWeighted(3L, new Function<String, Object>() {
final Flow<String, String, NotUsed> flow = Flow.of(String.class).batchWeighted(3L, new Function<String, java.lang.Long>() {
@Override
public Object apply(String s) throws Exception {
public java.lang.Long apply(String s) throws Exception {
return 1L;
}
}, new Function<String, String>() {