rename the new Materializer.create to createMaterializer, #27642

* because static methods are resolved by looking at extended class too,
  and that results in ambigious method clash with existing create in
  ActorMaterializer
This commit is contained in:
Patrik Nordwall 2019-09-06 09:02:20 +02:00
parent b68d67008a
commit e80b591115
5 changed files with 10 additions and 13 deletions

View file

@ -295,7 +295,7 @@ public class FlowDocTest extends AbstractJavaTest {
// #materializer-from-actor-context
final class RunWithMyself extends AbstractActor {
Materializer mat = Materializer.create(context());
Materializer mat = Materializer.createMaterializer(context());
@Override
public void preStart() throws Exception {

View file

@ -62,7 +62,7 @@ public class HubDocTest extends AbstractJavaTest {
@Test
public void dynamicBroadcast() {
// Used to be able to clean up the running stream
Materializer materializer = Materializer.create(system);
Materializer materializer = Materializer.createMaterializer(system);
// #broadcast-hub
// A simple producer that publishes a new "message" every second
@ -134,7 +134,7 @@ public class HubDocTest extends AbstractJavaTest {
@Test
public void dynamicPartition() {
// Used to be able to clean up the running stream
Materializer materializer = Materializer.create(system);
Materializer materializer = Materializer.createMaterializer(system);
// #partition-hub
// A simple producer that publishes a new "message-n" every second
@ -182,7 +182,7 @@ public class HubDocTest extends AbstractJavaTest {
@Test
public void dynamicStatefulPartition() {
// Used to be able to clean up the running stream
Materializer materializer = Materializer.create(system);
Materializer materializer = Materializer.createMaterializer(system);
// #partition-hub-stateful
// A simple producer that publishes a new "message-n" every second
@ -215,7 +215,7 @@ public class HubDocTest extends AbstractJavaTest {
@Test
public void dynamicFastestPartition() {
// Used to be able to clean up the running stream
Materializer materializer = Materializer.create(system);
Materializer materializer = Materializer.createMaterializer(system);
// #partition-hub-fastest
Source<Integer, NotUsed> producer = Source.range(0, 100);