Skip to content

Commit ca12c18

Browse files
committed
remove use of final object due to compiler warnings
1 parent 401719a commit ca12c18

File tree

16 files changed

+21
-21
lines changed

16 files changed

+21
-21
lines changed

pekko-http-argonaut/src/test/scala/com/github/pjfanning/pekkohttpargonaut/ArgonautSupportSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ final class ArgonautSupportSpec extends AsyncWordSpec with Matchers with BeforeA
107107
val `application/json-home` =
108108
MediaType.applicationWithFixedCharset("json-home", HttpCharsets.`UTF-8`, "json-home")
109109

110-
final object CustomArgonautSupport extends ArgonautSupport {
110+
object CustomArgonautSupport extends ArgonautSupport {
111111
override def unmarshallerContentTypes = List(`application/json`, `application/json-home`)
112112
}
113113
import CustomArgonautSupport._

pekko-http-argonaut/src/test/scala/com/github/pjfanning/pekkohttpargonaut/ExampleApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import scala.io.StdIn
3232

3333
object ExampleApp {
3434

35-
final object Foo {
35+
object Foo {
3636
implicit val fooCodec: CodecJson[Foo] =
3737
casecodec1(Foo.apply, (f: Foo) => Option(f.bar))("bar")
3838
}

pekko-http-avro4s/src/test/scala/com/github/pjfanning/pekkohttpavro4s/AvroSupportSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ final class AvroSupportSpec extends AsyncWordSpec with Matchers with BeforeAndAf
106106
val `application/json-home` =
107107
MediaType.applicationWithFixedCharset("json-home", HttpCharsets.`UTF-8`, "json-home")
108108

109-
final object CustomAvroSupport extends AvroSupport {
109+
object CustomAvroSupport extends AvroSupport {
110110
override def unmarshallerContentTypes = List(`application/json`, `application/json-home`)
111111
}
112112
import CustomAvroSupport._

pekko-http-avro4s/src/test/scala/com/github/pjfanning/pekkohttpavro4s/ExampleApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import scala.io.StdIn
3030

3131
object ExampleApp {
3232

33-
final object Foo {
33+
object Foo {
3434
implicit val schemaFor = SchemaFor[Foo]
3535
implicit val toRecord = ToRecord[Foo]
3636
implicit val fromRecord = FromRecord[Foo]

pekko-http-circe/src/test/scala/com/github/pjfanning/pekkohttpcirce/CirceSupportSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ final class CirceSupportSpec
156156
"allow unmarshalling with passed in Content-Types" in {
157157
val foo = Foo("bar")
158158

159-
final object CustomCirceSupport extends FailFastCirceSupport {
159+
object CustomCirceSupport extends FailFastCirceSupport {
160160
override def unmarshallerContentTypes: List[ContentTypeRange] =
161161
List(`application/json`, `application/json-home`)
162162
}
@@ -222,7 +222,7 @@ final class CirceSupportSpec
222222
"allow unmarshalling with passed in Content-Types" in {
223223
val foo = Foo("bar")
224224

225-
final object CustomCirceSupport extends ErrorAccumulatingCirceSupport {
225+
object CustomCirceSupport extends ErrorAccumulatingCirceSupport {
226226
override def unmarshallerContentTypes: List[ContentTypeRange] =
227227
List(`application/json`, `application/json-home`)
228228
}

pekko-http-jackson/src/test/scala/com/github/pjfanning/pekkohttpjackson/JacksonSupportSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ final class JacksonSupportSpec extends AsyncWordSpec with Matchers with BeforeAn
105105
val `application/json-home` =
106106
MediaType.applicationWithFixedCharset("json-home", HttpCharsets.`UTF-8`, "json-home")
107107

108-
final object CustomJacksonSupport extends JacksonSupport {
108+
object CustomJacksonSupport extends JacksonSupport {
109109
override def unmarshallerContentTypes = List(`application/json`, `application/json-home`)
110110
}
111111
import CustomJacksonSupport._

pekko-http-jackson3/src/test/scala/com/github/pjfanning/pekkohttpjackson3/JacksonSupportSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ final class JacksonSupportSpec extends AsyncWordSpec with Matchers with BeforeAn
106106
val `application/json-home` =
107107
MediaType.applicationWithFixedCharset("json-home", HttpCharsets.`UTF-8`, "json-home")
108108

109-
final object CustomJacksonSupport extends JacksonSupport {
109+
object CustomJacksonSupport extends JacksonSupport {
110110
override def unmarshallerContentTypes = List(`application/json`, `application/json-home`)
111111
}
112112
import CustomJacksonSupport._

pekko-http-json4s/src/main/scala/com/github/pjfanning/pekkohttpjson4s/Json4sSupport.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ object Json4sSupport extends Json4sSupport {
5252

5353
sealed abstract class ShouldWritePretty
5454

55-
final object ShouldWritePretty {
56-
final object True extends ShouldWritePretty
57-
final object False extends ShouldWritePretty
55+
object ShouldWritePretty {
56+
object True extends ShouldWritePretty
57+
object False extends ShouldWritePretty
5858
}
5959
}
6060

pekko-http-json4s/src/test/scala/com/github/pjfanning/pekkohttpjson4s/Json4sSupportSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ final class Json4sSupportSpec extends AsyncWordSpec with Matchers with BeforeAnd
117117
val `application/json-home` =
118118
MediaType.applicationWithFixedCharset("json-home", HttpCharsets.`UTF-8`, "json-home")
119119

120-
final object CustomJson4sSupport extends Json4sSupport {
120+
object CustomJson4sSupport extends Json4sSupport {
121121
override def unmarshallerContentTypes = List(`application/json`, `application/json-home`)
122122
}
123123
import CustomJson4sSupport._

pekko-http-jsoniter-scala-circe/src/test/scala/com/github/pjfanning/pekkohttpjsoniterscalacirce/CirceSupportSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ final class CirceSupportSpec
156156
"allow unmarshalling with passed in Content-Types" in {
157157
val foo = Foo("bar")
158158

159-
final object CustomCirceSupport extends FailFastCirceSupport {
159+
object CustomCirceSupport extends FailFastCirceSupport {
160160
override def unmarshallerContentTypes: List[ContentTypeRange] =
161161
List(`application/json`, `application/json-home`)
162162
}
@@ -222,7 +222,7 @@ final class CirceSupportSpec
222222
"allow unmarshalling with passed in Content-Types" in {
223223
val foo = Foo("bar")
224224

225-
final object CustomCirceSupport extends ErrorAccumulatingCirceSupport {
225+
object CustomCirceSupport extends ErrorAccumulatingCirceSupport {
226226
override def unmarshallerContentTypes: List[ContentTypeRange] =
227227
List(`application/json`, `application/json-home`)
228228
}

0 commit comments

Comments
 (0)