@@ -37,7 +37,7 @@ class MessageHelper(config: Config) {
37
37
def label (key : String ): String = getMessage(key + " .label" , List ())
38
38
def description (key : String ): String = getMessage(key + " .description" , List ())
39
39
40
- private [this ] def getMessage (key : String , args : List [String ]) = {
40
+ private [this ] def getMessage (key : String , args : Seq [String ]) = {
41
41
try {
42
42
val pattern = config.getString(key)
43
43
MessageFormat .format(pattern, args.map(_.asInstanceOf [AnyRef ]): _* )
@@ -47,7 +47,7 @@ class MessageHelper(config: Config) {
47
47
}
48
48
}
49
49
50
- def message (key : String , args : List [String ]): String =
50
+ def message (key : String , args : Seq [String ]): String =
51
51
// Use ClassLoader of the class from which the message came
52
52
getMessage(key + " .message" , args)
53
53
}
@@ -65,7 +65,7 @@ case class StyleError[+T <: FileSpec](
65
65
clazz : Class [_ <: Checker [_]],
66
66
key : String ,
67
67
level : Level ,
68
- args : List [String ],
68
+ args : Seq [String ],
69
69
lineNumber : Option [Int ] = None ,
70
70
column : Option [Int ] = None ,
71
71
customMessage : Option [String ] = None
@@ -84,15 +84,10 @@ case class StyleException[+T <: FileSpec](
84
84
) extends Message [T ]
85
85
86
86
sealed abstract class ScalastyleError
87
- case class PositionError (position : Int , args : List [String ] = List [ String ]() , errorKey : Option [String ] = None )
87
+ case class PositionError (position : Int , args : Seq [String ] = Nil , errorKey : Option [String ] = None )
88
88
extends ScalastyleError
89
- case class FileError (args : List [String ] = List [String ](), errorKey : Option [String ] = None )
89
+ case class FileError (args : Seq [String ] = Nil , errorKey : Option [String ] = None ) extends ScalastyleError
90
+ case class LineError (line : Int , args : Seq [String ] = Nil , errorKey : Option [String ] = None )
90
91
extends ScalastyleError
91
- case class LineError (line : Int , args : List [String ] = List [ String ]() , errorKey : Option [String ] = None )
92
+ case class ColumnError (line : Int , column : Int , args : Seq [String ] = Nil , errorKey : Option [String ] = None )
92
93
extends ScalastyleError
93
- case class ColumnError (
94
- line : Int ,
95
- column : Int ,
96
- args : List [String ] = List [String ](),
97
- errorKey : Option [String ] = None
98
- ) extends ScalastyleError
0 commit comments