@@ -522,12 +522,12 @@ extends SyntaxMsg(RepeatedModifierID) {
522
522
import scala .language .unsafeNulls
523
523
List (
524
524
CodeAction (title = s """ Remove repeated modifier: " $modifier" """ ,
525
- description = java.util. Optional .empty() ,
525
+ description = None ,
526
526
patches = List (
527
527
ActionPatch (SourcePosition (source, span), " " )
528
- ).asJava
528
+ )
529
529
)
530
- ).asJava
530
+ )
531
531
}
532
532
533
533
class InterpolatedStringError ()(implicit ctx: Context )
@@ -1874,13 +1874,13 @@ class OnlyFunctionsCanBeFollowedByUnderscore(tp: Type, tree: untpd.PostfixOp)(us
1874
1874
val untpd .PostfixOp (qual, Ident (nme.WILDCARD )) = tree : @ unchecked
1875
1875
List (
1876
1876
CodeAction (title = " Rewrite to function value" ,
1877
- description = java.util. Optional .empty() ,
1877
+ description = None ,
1878
1878
patches = List (
1879
1879
ActionPatch (SourcePosition (tree.source, Span (tree.span.start)), " (() => " ),
1880
1880
ActionPatch (SourcePosition (tree.source, Span (qual.span.end, tree.span.end)), " )" )
1881
- ).asJava
1881
+ )
1882
1882
)
1883
- ).asJava
1883
+ )
1884
1884
}
1885
1885
1886
1886
class MissingEmptyArgumentList (method : String , tree : tpd.Tree )(using Context )
@@ -1903,12 +1903,12 @@ class MissingEmptyArgumentList(method: String, tree: tpd.Tree)(using Context)
1903
1903
import scala .language .unsafeNulls
1904
1904
List (
1905
1905
CodeAction (title = " Insert ()" ,
1906
- description = java.util. Optional .empty() ,
1906
+ description = None ,
1907
1907
patches = List (
1908
1908
ActionPatch (SourcePosition (tree.source, tree.span.endPos), " ()" ),
1909
- ).asJava
1909
+ )
1910
1910
)
1911
- ).asJava
1911
+ )
1912
1912
}
1913
1913
1914
1914
class DuplicateNamedTypeParameter (name : Name )(using Context )
0 commit comments