Skip to content

Commit ba0caa8

Browse files
DarkDimiusOlivierBlanvillain
authored andcommitted
Use getSimpleName
1 parent d69cd13 commit ba0caa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/localopt/Optimisation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait Optimisation {
1414
*/
1515
def transformer(localCtx: Context): Tree => Tree
1616

17-
def name: String = this.getClass.getName.split('.').last
17+
def name: String = this.getClass.getSimpleName
1818

1919
val NoVisitor: Tree => Unit = _ => ()
2020
}

0 commit comments

Comments
 (0)