= all remove semicolons "bye-bye semicolon" (#24659)

This commit is contained in:
kerr 2018-03-05 18:53:28 -06:00 committed by Konrad `ktoso` Malawski
parent 6646eded2c
commit 97ca714d17
13 changed files with 29 additions and 29 deletions

View file

@ -1,8 +1,8 @@
package akka; package akka
import akka.actor._ import akka.actor._
import org.scalatest.Matchers 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. * A spec that verified that the AkkaException has at least a single argument constructor of type String.

View file

@ -195,7 +195,7 @@ abstract class AbstractFSM[S, D] extends FSM[S, D] {
* @return the builder with the case statement added * @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] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEvent[ET](eventType: Class[ET], apply: Apply2[ET, D, State]): FSMStateFunctionBuilder[S, D] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEvent(predicate: TypedPredicate2[AnyRef, D], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D] = 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. * 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 * @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] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEvent(eventMatches: JList[AnyRef], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D] = 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. * 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 * @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] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEventEquals[E](event: E, apply: Apply2[E, D, State]): FSMStateFunctionBuilder[S, D] = 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. * Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.

View file

@ -115,7 +115,7 @@ object MurmurHash {
var k = hiddenMagicB var k = hiddenMagicB
var j = 0 var j = 0
while (j + 1 < s.length) { 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) h = extendHash(h, i, c, k)
c = nextMagicA(c) c = nextMagicA(c)
k = nextMagicB(k) k = nextMagicB(k)

View file

@ -40,7 +40,7 @@ class CountMinSketchBenchmark {
@Benchmark @Benchmark
@OperationsPerInvocation(8192) @OperationsPerInvocation(8192)
def updateRandomNumbers(blackhole: Blackhole): Unit = { def updateRandomNumbers(blackhole: Blackhole): Unit = {
var i: Int = 0; var i: Int = 0
while (i < 8192) { while (i < 8192) {
blackhole.consume(countMinSketch.addObjectAndEstimateCount(preallocateIds(i), preallocateValues(i))) blackhole.consume(countMinSketch.addObjectAndEstimateCount(preallocateIds(i), preallocateValues(i)))
i += 1 i += 1

View file

@ -42,7 +42,7 @@ class DefaultCamelTest extends WordSpec with SharedCamelSystem with Matchers wit
} }
"throws exception thrown by context.stop()" in { "throws exception thrown by context.stop()" in {
exception.getMessage() should ===("context"); exception.getMessage() should ===("context")
} }
"tries to stop both template and context" in { "tries to stop both template and context" in {

View file

@ -99,7 +99,7 @@ trait Player { this: TestConductorExt ⇒
val barrierTimeout = stop.timeLeft val barrierTimeout = stop.timeLeft
if (barrierTimeout < Duration.Zero) { if (barrierTimeout < Duration.Zero) {
client ! ToServer(FailBarrier(b)) 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 { try {
implicit val timeout = Timeout(barrierTimeout + Settings.QueryTimeout.duration) implicit val timeout = Timeout(barrierTimeout + Settings.QueryTimeout.duration)

View file

@ -34,7 +34,7 @@ class PingPongActorSystemActivator extends ActorSystemActivator {
*/ */
class RuntimeNameActorSystemActivator 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) = override def getActorSystemName(context: BundleContext) =
TestActivators.ACTOR_SYSTEM_NAME_PATTERN.format(context.getBundle.getBundleId) TestActivators.ACTOR_SYSTEM_NAME_PATTERN.format(context.getBundle.getBundleId)

View file

@ -801,7 +801,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
* @return the builder with the case statement added * @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] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEvent[ET](eventType: Class[ET], apply: Apply2[ET, D, State]): FSMStateFunctionBuilder[S, D, E] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEvent(predicate: TypedPredicate2[AnyRef, D], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D, E] = 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. * 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 * @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] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEvent(eventMatches: JList[AnyRef], apply: Apply2[AnyRef, D, State]): FSMStateFunctionBuilder[S, D, E] = 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. * 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 * @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] = 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. * 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 * @return the builder with the case statement added
*/ */
final def matchEventEquals[Ev](event: Ev, apply: Apply2[Ev, D, State]): FSMStateFunctionBuilder[S, D, E] = 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. * Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.

View file

@ -41,7 +41,7 @@ object BenchmarkFileReporter {
Try("git describe".!!.trim).getOrElse("[unknown]") Try("git describe".!!.trim).getOrElse("[unknown]")
} }
val testResultFile: File = { 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" val fileName = s"$timestamp-Artery-$testName-$gitCommit-results.txt"
new File(targetDirectory, fileName) new File(targetDirectory, fileName)
} }

View file

@ -86,7 +86,7 @@ abstract class AeronStreamMaxThroughputSpec
val pool = new EnvelopeBufferPool(1024 * 1024, 128) 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 = val stats =
new AeronStat(AeronStat.mapCounters(cncByteBuffer)) new AeronStat(AeronStat.mapCounters(cncByteBuffer))

View file

@ -187,7 +187,7 @@ class RemotingSpec extends AkkaSpec(RemotingSpec.cfg) with ImplicitSender with D
} }
override def atStartup() = { override def atStartup() = {
muteSystem(system); muteSystem(system)
remoteSystem.eventStream.publish(TestEvent.Mute( remoteSystem.eventStream.publish(TestEvent.Mute(
EventFilter[EndpointException](), EventFilter[EndpointException](),
EventFilter.error(start = "AssociationError"), EventFilter.error(start = "AssociationError"),

View file

@ -8,7 +8,7 @@ import akka.stream.Attributes.none
import akka.stream.scaladsl._ import akka.stream.scaladsl._
import akka.stream.testkit._ import akka.stream.testkit._
import akka.actor.ActorSystem; import akka.actor.ActorSystem
/** /**
* Factory methods for test sources. * Factory methods for test sources.

View file

@ -290,9 +290,9 @@ class TimeoutsSpec extends StreamSpec {
RunnableGraph.fromGraph(GraphDSL.create() { implicit b RunnableGraph.fromGraph(GraphDSL.create() { implicit b
import GraphDSL.Implicits._ import GraphDSL.Implicits._
val timeoutStage = b.add(BidiFlow.bidirectionalIdleTimeout[String, Int](2.seconds)) 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) timeoutStage.out1 ~> Sink.fromSubscriber(downRead)
Sink.fromSubscriber(upRead) <~ timeoutStage.out2; Sink.fromSubscriber(upRead) <~ timeoutStage.out2
timeoutStage.in2 <~ Source.fromPublisher(downWrite) timeoutStage.in2 <~ Source.fromPublisher(downWrite)
ClosedShape ClosedShape
}).run() }).run()
@ -338,9 +338,9 @@ class TimeoutsSpec extends StreamSpec {
RunnableGraph.fromGraph(GraphDSL.create() { implicit b RunnableGraph.fromGraph(GraphDSL.create() { implicit b
import GraphDSL.Implicits._ import GraphDSL.Implicits._
val timeoutStage = b.add(BidiFlow.bidirectionalIdleTimeout[String, Int](2.seconds)) 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) timeoutStage.out1 ~> Sink.fromSubscriber(downRead)
Sink.fromSubscriber(upRead) <~ timeoutStage.out2; Sink.fromSubscriber(upRead) <~ timeoutStage.out2
timeoutStage.in2 <~ Source.fromPublisher(downWrite) timeoutStage.in2 <~ Source.fromPublisher(downWrite)
ClosedShape ClosedShape
}).run() }).run()