@@ -522,12 +522,12 @@ extends SyntaxMsg(RepeatedModifierID) {
522522 import scala .language .unsafeNulls
523523 List (
524524 CodeAction (title = s """ Remove repeated modifier: " $modifier" """ ,
525- description = java.util. Optional .empty() ,
525+ description = None ,
526526 patches = List (
527527 ActionPatch (SourcePosition (source, span), " " )
528- ).asJava
528+ )
529529 )
530- ).asJava
530+ )
531531}
532532
533533class InterpolatedStringError ()(implicit ctx: Context )
@@ -1874,13 +1874,13 @@ class OnlyFunctionsCanBeFollowedByUnderscore(tp: Type, tree: untpd.PostfixOp)(us
18741874 val untpd .PostfixOp (qual, Ident (nme.WILDCARD )) = tree : @ unchecked
18751875 List (
18761876 CodeAction (title = " Rewrite to function value" ,
1877- description = java.util. Optional .empty() ,
1877+ description = None ,
18781878 patches = List (
18791879 ActionPatch (SourcePosition (tree.source, Span (tree.span.start)), " (() => " ),
18801880 ActionPatch (SourcePosition (tree.source, Span (qual.span.end, tree.span.end)), " )" )
1881- ).asJava
1881+ )
18821882 )
1883- ).asJava
1883+ )
18841884}
18851885
18861886class MissingEmptyArgumentList (method : String , tree : tpd.Tree )(using Context )
@@ -1903,12 +1903,12 @@ class MissingEmptyArgumentList(method: String, tree: tpd.Tree)(using Context)
19031903 import scala .language .unsafeNulls
19041904 List (
19051905 CodeAction (title = " Insert ()" ,
1906- description = java.util. Optional .empty() ,
1906+ description = None ,
19071907 patches = List (
19081908 ActionPatch (SourcePosition (tree.source, tree.span.endPos), " ()" ),
1909- ).asJava
1909+ )
19101910 )
1911- ).asJava
1911+ )
19121912}
19131913
19141914class DuplicateNamedTypeParameter (name : Name )(using Context )
0 commit comments