= all remove semicolons "bye-bye semicolon" (#24659)
This commit is contained in:
parent
6646eded2c
commit
97ca714d17
13 changed files with 29 additions and 29 deletions
|
|
@ -1,8 +1,8 @@
|
|||
package akka;
|
||||
package akka
|
||||
|
||||
import akka.actor._
|
||||
import org.scalatest.Matchers
|
||||
import org.scalatest.WordSpec;
|
||||
import org.scalatest.WordSpec
|
||||
|
||||
/**
|
||||
* A spec that verified that the AkkaException has at least a single argument constructor of type String.
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent[ET](eventType: Class[ET], predicate: TypedPredicate2[ET, D], apply: Apply2[ET, D, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventType, predicate, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventType, predicate, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -207,7 +207,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent[ET](eventType: Class[ET], apply: Apply2[ET, D, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventType, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventType, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -219,7 +219,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent(predicate: TypedPredicate2[AnyRef, D], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().event(predicate, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().event(predicate, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -233,7 +233,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent[DT <: D](eventMatches: JList[AnyRef], dataType: Class[DT], apply: Apply2[AnyRef, DT, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventMatches, dataType, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventMatches, dataType, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -246,7 +246,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent(eventMatches: JList[AnyRef], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventMatches, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().event(eventMatches, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -259,7 +259,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEventEquals[E, DT <: D](event: E, dataType: Class[DT], apply: Apply2[E, DT, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().eventEquals(event, dataType, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().eventEquals(event, dataType, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -271,7 +271,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEventEquals[E](event: E, apply: Apply2[E, D, State]): FSMStateFunctionBuilder[S, D] =
|
||||
new FSMStateFunctionBuilder[S, D]().eventEquals(event, apply);
|
||||
new FSMStateFunctionBuilder[S, D]().eventEquals(event, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ object MurmurHash {
|
|||
var k = hiddenMagicB
|
||||
var j = 0
|
||||
while (j + 1 < s.length) {
|
||||
val i = (s.charAt(j) << 16) + s.charAt(j + 1);
|
||||
val i = (s.charAt(j) << 16) + s.charAt(j + 1)
|
||||
h = extendHash(h, i, c, k)
|
||||
c = nextMagicA(c)
|
||||
k = nextMagicB(k)
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class CountMinSketchBenchmark {
|
|||
@Benchmark
|
||||
@OperationsPerInvocation(8192)
|
||||
def updateRandomNumbers(blackhole: Blackhole): Unit = {
|
||||
var i: Int = 0;
|
||||
var i: Int = 0
|
||||
while (i < 8192) {
|
||||
blackhole.consume(countMinSketch.addObjectAndEstimateCount(preallocateIds(i), preallocateValues(i)))
|
||||
i += 1
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class DefaultCamelTest extends WordSpec with SharedCamelSystem with Matchers wit
|
|||
}
|
||||
|
||||
"throws exception thrown by context.stop()" in {
|
||||
exception.getMessage() should ===("context");
|
||||
exception.getMessage() should ===("context")
|
||||
}
|
||||
|
||||
"tries to stop both template and context" in {
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ trait Player { this: TestConductorExt ⇒
|
|||
val barrierTimeout = stop.timeLeft
|
||||
if (barrierTimeout < Duration.Zero) {
|
||||
client ! ToServer(FailBarrier(b))
|
||||
throw new TimeoutException("Server timed out while waiting for barrier " + b);
|
||||
throw new TimeoutException("Server timed out while waiting for barrier " + b)
|
||||
}
|
||||
try {
|
||||
implicit val timeout = Timeout(barrierTimeout + Settings.QueryTimeout.duration)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class PingPongActorSystemActivator extends ActorSystemActivator {
|
|||
*/
|
||||
class RuntimeNameActorSystemActivator extends ActorSystemActivator {
|
||||
|
||||
def configure(context: BundleContext, system: ActorSystem) = registerService(context, system);
|
||||
def configure(context: BundleContext, system: ActorSystem) = registerService(context, system)
|
||||
|
||||
override def getActorSystemName(context: BundleContext) =
|
||||
TestActivators.ACTOR_SYSTEM_NAME_PATTERN.format(context.getBundle.getBundleId)
|
||||
|
|
|
|||
|
|
@ -801,7 +801,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent[ET](eventType: Class[ET], predicate: TypedPredicate2[ET, D], apply: Apply2[ET, D, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventType, predicate, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventType, predicate, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -813,7 +813,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent[ET](eventType: Class[ET], apply: Apply2[ET, D, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventType, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventType, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -825,7 +825,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent(predicate: TypedPredicate2[AnyRef, D], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(predicate, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(predicate, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -839,7 +839,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent[DT <: D](eventMatches: JList[AnyRef], dataType: Class[DT], apply: Apply2[AnyRef, DT, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventMatches, dataType, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventMatches, dataType, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -852,7 +852,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEvent(eventMatches: JList[AnyRef], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventMatches, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().event(eventMatches, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -865,7 +865,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEventEquals[Ev, DT <: D](event: Ev, dataType: Class[DT], apply: Apply2[Ev, DT, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().eventEquals(event, dataType, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().eventEquals(event, dataType, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
@ -877,7 +877,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
|
|||
* @return the builder with the case statement added
|
||||
*/
|
||||
final def matchEventEquals[Ev](event: Ev, apply: Apply2[Ev, D, State]): FSMStateFunctionBuilder[S, D, E] =
|
||||
new FSMStateFunctionBuilder[S, D, E]().eventEquals(event, apply);
|
||||
new FSMStateFunctionBuilder[S, D, E]().eventEquals(event, apply)
|
||||
|
||||
/**
|
||||
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ object BenchmarkFileReporter {
|
|||
Try("git describe".!!.trim).getOrElse("[unknown]")
|
||||
}
|
||||
val testResultFile: File = {
|
||||
val timestamp = formatter.format(LocalDateTime.ofInstant(Instant.now(), ZoneId.systemDefault()));
|
||||
val timestamp = formatter.format(LocalDateTime.ofInstant(Instant.now(), ZoneId.systemDefault()))
|
||||
val fileName = s"$timestamp-Artery-$testName-$gitCommit-results.txt"
|
||||
new File(targetDirectory, fileName)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ abstract class AeronStreamMaxThroughputSpec
|
|||
|
||||
val pool = new EnvelopeBufferPool(1024 * 1024, 128)
|
||||
|
||||
val cncByteBuffer = IoUtil.mapExistingFile(new File(driver.aeronDirectoryName, CncFileDescriptor.CNC_FILE), "cnc");
|
||||
val cncByteBuffer = IoUtil.mapExistingFile(new File(driver.aeronDirectoryName, CncFileDescriptor.CNC_FILE), "cnc")
|
||||
val stats =
|
||||
new AeronStat(AeronStat.mapCounters(cncByteBuffer))
|
||||
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ class RemotingSpec extends AkkaSpec(RemotingSpec.cfg) with ImplicitSender with D
|
|||
}
|
||||
|
||||
override def atStartup() = {
|
||||
muteSystem(system);
|
||||
muteSystem(system)
|
||||
remoteSystem.eventStream.publish(TestEvent.Mute(
|
||||
EventFilter[EndpointException](),
|
||||
EventFilter.error(start = "AssociationError"),
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import akka.stream.Attributes.none
|
|||
import akka.stream.scaladsl._
|
||||
import akka.stream.testkit._
|
||||
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.actor.ActorSystem
|
||||
|
||||
/**
|
||||
* Factory methods for test sources.
|
||||
|
|
|
|||
|
|
@ -290,9 +290,9 @@ class TimeoutsSpec extends StreamSpec {
|
|||
RunnableGraph.fromGraph(GraphDSL.create() { implicit b ⇒
|
||||
import GraphDSL.Implicits._
|
||||
val timeoutStage = b.add(BidiFlow.bidirectionalIdleTimeout[String, Int](2.seconds))
|
||||
Source.fromPublisher(upWrite) ~> timeoutStage.in1;
|
||||
Source.fromPublisher(upWrite) ~> timeoutStage.in1
|
||||
timeoutStage.out1 ~> Sink.fromSubscriber(downRead)
|
||||
Sink.fromSubscriber(upRead) <~ timeoutStage.out2;
|
||||
Sink.fromSubscriber(upRead) <~ timeoutStage.out2
|
||||
timeoutStage.in2 <~ Source.fromPublisher(downWrite)
|
||||
ClosedShape
|
||||
}).run()
|
||||
|
|
@ -338,9 +338,9 @@ class TimeoutsSpec extends StreamSpec {
|
|||
RunnableGraph.fromGraph(GraphDSL.create() { implicit b ⇒
|
||||
import GraphDSL.Implicits._
|
||||
val timeoutStage = b.add(BidiFlow.bidirectionalIdleTimeout[String, Int](2.seconds))
|
||||
Source.fromPublisher(upWrite) ~> timeoutStage.in1;
|
||||
Source.fromPublisher(upWrite) ~> timeoutStage.in1
|
||||
timeoutStage.out1 ~> Sink.fromSubscriber(downRead)
|
||||
Sink.fromSubscriber(upRead) <~ timeoutStage.out2;
|
||||
Sink.fromSubscriber(upRead) <~ timeoutStage.out2
|
||||
timeoutStage.in2 <~ Source.fromPublisher(downWrite)
|
||||
ClosedShape
|
||||
}).run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue