Skip to content

Commit

Permalink
FRosner#123 remove useless volatile and synchronized (thx @Gerrrr)
Browse files Browse the repository at this point in the history
  • Loading branch information
FRosner committed Jan 27, 2017
1 parent d19c86a commit fcc11d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/de/frosner/ddq/reporters/EmailReporter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import scala.concurrent.Await
* or else you will lose the results.
*
**/
@volatile
case class EmailReporter(smtpServer: String,
to: Set[String],
cc: Set[String] = Set.empty,
Expand All @@ -50,7 +49,7 @@ case class EmailReporter(smtpServer: String,
*
* @param checkResult The [[CheckResult]] to be reported
**/
override def report(checkResult: CheckResult, header: String, prologue: String): Unit = synchronized {
override def report(checkResult: CheckResult, header: String, prologue: String): Unit = {
val numSuccessfulConstraints = computeSuccessful(checkResult)
val numFailedConstraints = computeFailed(checkResult)
val numErroredConstraints = computeErrored(checkResult)
Expand Down

0 comments on commit fcc11d8

Please sign in to comment.