Skip to content

Commit dfd36a9

Browse files
committed
Remove unascessary println messages
1 parent 71f377e commit dfd36a9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The second thing we have to do is add the spawn dependency to the project.
9494
<dependency>
9595
<groupId>com.github.eigr</groupId>
9696
<artifactId>spawn-java-std-sdk</artifactId>
97-
<version>v1.0.0</version>
97+
<version>v1.0.1</version>
9898
</dependency>
9999
```
100100
We're also going to configure a few things for our application build to work, including compiling the protobuf files.
@@ -128,7 +128,7 @@ See below a full example of the pom.xml file:
128128
<dependency>
129129
<groupId>com.github.eigr</groupId>
130130
<artifactId>spawn-java-std-sdk</artifactId>
131-
<version>v1.0.0</version>
131+
<version>v1.0.1</version>
132132
</dependency>
133133
<dependency>
134134
<groupId>ch.qos.logback</groupId>
@@ -598,6 +598,10 @@ import io.eigr.spawn.api.extensions.SimpleDependencyInjector;
598598
public class App {
599599
public static void main(String[] args) {
600600
DependencyInjector injector = SimpleDependencyInjector.createInjector();
601+
/*
602+
You can bind as many objects as you want. As long as they are of unique types.
603+
If you try to add different instances of the same type you will receive an error.
604+
*/
601605
injector.bind(MessageService.class, new MessageServiceImpl());
602606

603607
Spawn spawnSystem = new Spawn.SpawnSystem()

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>io.eigr.spawn</groupId>
55
<artifactId>spawn-java-std-sdk</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
<name>spawn-java-std-sdk</name>
99
<url>http://maven.apache.org</url>
1010

src/main/java/io/eigr/spawn/api/ActorIdentity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public Optional<String> getMaybeParent() {
5858
}
5959

6060
public boolean isParent() {
61-
System.out.println(String.format("Actor %s is parent? = %s", this.name, this.maybeParent.isPresent()));
6261
return this.maybeParent.isPresent();
6362
}
6463

src/main/java/io/eigr/spawn/api/ActorRef.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ protected static ActorRef of(SpawnClient client, Cache<ActorOuterClass.ActorId,
4343
ActorOuterClass.ActorId actorId;
4444

4545
if (identity.isParent()) {
46-
System.out.println("Passou como parent");
4746
actorId = buildActorId(identity.getSystem(), identity.getName(), identity.getParent());
4847

4948
spawnActor(actorId, client);
5049
} else {
51-
System.out.println("Passou como normal");
5250
actorId = buildActorId(identity.getSystem(), identity.getName());
5351
}
5452

@@ -58,7 +56,6 @@ protected static ActorRef of(SpawnClient client, Cache<ActorOuterClass.ActorId,
5856
}
5957

6058
if (identity.hasLookup()) {
61-
System.out.println("Faca lookup");
6259
spawnActor(actorId, client);
6360
}
6461

0 commit comments

Comments
 (0)