Skip to content

Commit ad21317

Browse files
authored
chore: Add missing final to case classes. (#499)
Motivation: It was missing, the `final` keyword.
1 parent 8feba25 commit ad21317

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sjsonnet/src/sjsonnet/Settings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package sjsonnet
44
* Settings for the interpreter. This is a subset of Config which is used in the inner layers of the
55
* interpreters and shared between all platforms.
66
*/
7-
case class Settings(
7+
final case class Settings(
88
val preserveOrder: Boolean = false,
99
val strict: Boolean = false,
1010
val throwErrorForInvalidSets: Boolean = false,

sjsonnet/src/sjsonnet/Val.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ object Val {
148148
}
149149
}
150150

151-
case class Arr(pos: Position, private val value: Array[? <: Lazy]) extends Literal {
151+
final case class Arr(pos: Position, private val value: Array[? <: Lazy]) extends Literal {
152152
def prettyName = "array"
153153

154154
override def asArr: Arr = this

0 commit comments

Comments
 (0)