converted tabs to spaces
This commit is contained in:
parent
575ae92fb9
commit
5a1c0da8ae
7 changed files with 20 additions and 20 deletions
0
akka-actor/src/main/scala/akka/actor/ActorRefProvider.scala
Executable file → Normal file
0
akka-actor/src/main/scala/akka/actor/ActorRefProvider.scala
Executable file → Normal file
|
|
@ -44,7 +44,7 @@ public class AgentDocTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void createAndClose() {
|
public void createAndClose() {
|
||||||
//#create
|
//#create
|
||||||
ActorSystem system = ActorSystem.create("app");
|
ActorSystem system = ActorSystem.create("app");
|
||||||
|
|
||||||
Agent<Integer> agent = new Agent<Integer>(5, system);
|
Agent<Integer> agent = new Agent<Integer>(5, system);
|
||||||
|
|
|
||||||
2
akka-remote/src/multi-jvm/scala/akka/remote/AbstractRemoteActorMultiJvmSpec.scala
Executable file → Normal file
2
akka-remote/src/multi-jvm/scala/akka/remote/AbstractRemoteActorMultiJvmSpec.scala
Executable file → Normal file
|
|
@ -11,7 +11,7 @@ trait AbstractRemoteActorMultiJvmSpec {
|
||||||
nodesOpt getOrElse IndexedSeq.fill(NrOfNodes)("localhost")
|
nodesOpt getOrElse IndexedSeq.fill(NrOfNodes)("localhost")
|
||||||
}
|
}
|
||||||
|
|
||||||
def akkaSpec(idx: Int) = "AkkaRemoteSpec@%s:%d".format(remotes(idx), 9991+idx)
|
def akkaSpec(idx: Int) = "AkkaRemoteSpec@%s:%d".format(remotes(idx), 9991+idx)
|
||||||
|
|
||||||
def akkaURIs(count: Int): String = {
|
def akkaURIs(count: Int): String = {
|
||||||
0 until count map {idx => "\"akka://" + akkaSpec(idx) + "\""} mkString ","
|
0 until count map {idx => "\"akka://" + akkaSpec(idx) + "\""} mkString ","
|
||||||
|
|
|
||||||
0
akka-remote/src/multi-jvm/scala/akka/remote/Barrier.scala
Executable file → Normal file
0
akka-remote/src/multi-jvm/scala/akka/remote/Barrier.scala
Executable file → Normal file
0
akka-remote/src/multi-jvm/scala/akka/remote/ZKClient.scala
Executable file → Normal file
0
akka-remote/src/multi-jvm/scala/akka/remote/ZKClient.scala
Executable file → Normal file
|
|
@ -9,7 +9,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<root level="info">
|
<root level="info">
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
</root>
|
</root>
|
||||||
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,9 @@ public class JavaAPITests {
|
||||||
public void atomicWithRunnable() {
|
public void atomicWithRunnable() {
|
||||||
final Ref.View<Integer> ref = newRef(0);
|
final Ref.View<Integer> ref = newRef(0);
|
||||||
atomic(new Runnable() {
|
atomic(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
ref.set(10);
|
ref.set(10);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
int value = ref.get();
|
int value = ref.get();
|
||||||
assertEquals(10, value);
|
assertEquals(10, value);
|
||||||
|
|
@ -39,9 +39,9 @@ public class JavaAPITests {
|
||||||
public void atomicWithCallable() {
|
public void atomicWithCallable() {
|
||||||
final Ref.View<Integer> ref = newRef(0);
|
final Ref.View<Integer> ref = newRef(0);
|
||||||
int oldValue = atomic(new Callable<Integer>() {
|
int oldValue = atomic(new Callable<Integer>() {
|
||||||
public Integer call() {
|
public Integer call() {
|
||||||
return ref.swap(10);
|
return ref.swap(10);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
assertEquals(0, oldValue);
|
assertEquals(0, oldValue);
|
||||||
int newValue = ref.get();
|
int newValue = ref.get();
|
||||||
|
|
@ -53,10 +53,10 @@ public class JavaAPITests {
|
||||||
final Ref.View<Integer> ref = newRef(0);
|
final Ref.View<Integer> ref = newRef(0);
|
||||||
try {
|
try {
|
||||||
atomic(new Runnable() {
|
atomic(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
ref.set(10);
|
ref.set(10);
|
||||||
throw new TestException();
|
throw new TestException();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (TestException e) {
|
} catch (TestException e) {
|
||||||
int value = ref.get();
|
int value = ref.get();
|
||||||
|
|
@ -69,9 +69,9 @@ public class JavaAPITests {
|
||||||
public void transformInteger() {
|
public void transformInteger() {
|
||||||
Ref.View<Integer> ref = newRef(0);
|
Ref.View<Integer> ref = newRef(0);
|
||||||
transform(ref, new AbstractFunction1<Integer, Integer>() {
|
transform(ref, new AbstractFunction1<Integer, Integer>() {
|
||||||
public Integer apply(Integer i) {
|
public Integer apply(Integer i) {
|
||||||
return i + 10;
|
return i + 10;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
int value = ref.get();
|
int value = ref.get();
|
||||||
assertEquals(10, value);
|
assertEquals(10, value);
|
||||||
|
|
@ -110,13 +110,13 @@ public class JavaAPITests {
|
||||||
final Map<Integer, String> map = newMap();
|
final Map<Integer, String> map = newMap();
|
||||||
try {
|
try {
|
||||||
atomic(new Runnable() {
|
atomic(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
map.put(1, "one");
|
map.put(1, "one");
|
||||||
map.put(2, "two");
|
map.put(2, "two");
|
||||||
assertTrue(map.containsKey(1));
|
assertTrue(map.containsKey(1));
|
||||||
assertTrue(map.containsKey(2));
|
assertTrue(map.containsKey(2));
|
||||||
throw new TestException();
|
throw new TestException();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (TestException e) {
|
} catch (TestException e) {
|
||||||
assertFalse(map.containsKey(1));
|
assertFalse(map.containsKey(1));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue