Skip to content

Commit

Permalink
Change the order of checks
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-rd authored and Kordyjan committed Apr 26, 2023
1 parent 72e5dd2 commit 46d9c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class CheckUnused private (phaseMode: CheckUnused.PhaseMode, suffix: String, _ke
override def description: String = CheckUnused.description

override def isRunnable(using Context): Boolean =
super.isRunnable &&
ctx.settings.Wunused.value.nonEmpty &&
!ctx.isJava &&
super.isRunnable
!ctx.isJava

// ========== SETUP ============

Expand Down

0 comments on commit 46d9c07

Please # to comment.