Skip to content

Commit 25ce399

Browse files
committed
MixinOps: drop unnecessary .exists.
1 parent 5096a5b commit 25ce399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/MixinOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MixinOps(cls: ClassSymbol, thisTransform: DenotTransformer)(implicit ctx:
6969
}
7070

7171
private def needsJUnit4Fix(meth: Symbol): Boolean = {
72-
meth.annotations.nonEmpty && JUnit4Annotations.exists(annot => annot.exists && meth.hasAnnotation(annot))
72+
meth.annotations.nonEmpty && JUnit4Annotations.exists(annot => meth.hasAnnotation(annot))
7373
}
7474

7575
/** Get `sym` of the method that needs a forwarder

0 commit comments

Comments
 (0)