From 4f4bc374f6eb2ab0fa479adce5fc2990174d8227 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Wed, 11 Mar 2026 02:39:02 +0900 Subject: [PATCH] [2.x] refactor: Delete silent annotation (#8893) --- build.sbt | 1 + .../com/github/ghik/silencer/silent.scala | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 internal/util-logging/src/main/scala/com/github/ghik/silencer/silent.scala diff --git a/build.sbt b/build.sbt index 8c31de49e..a3b7003ee 100644 --- a/build.sbt +++ b/build.sbt @@ -340,6 +340,7 @@ lazy val utilLogging = project Test / fork := true, mimaSettings, mimaBinaryIssueFilters ++= Seq( + ProblemFilters.exclude[MissingClassProblem]("com.github.ghik.silencer.silent") ), ) .configure(addSbtIO) diff --git a/internal/util-logging/src/main/scala/com/github/ghik/silencer/silent.scala b/internal/util-logging/src/main/scala/com/github/ghik/silencer/silent.scala deleted file mode 100644 index 239379461..000000000 --- a/internal/util-logging/src/main/scala/com/github/ghik/silencer/silent.scala +++ /dev/null @@ -1,18 +0,0 @@ -/* - * sbt - * Copyright 2023, Scala center - * Copyright 2011 - 2022, Lightbend, Inc. - * Copyright 2008 - 2010, Mark Harrah - * Licensed under Apache License 2.0 (see LICENSE) - */ - -package com.github.ghik.silencer - -import scala.annotation.Annotation - -/** - * When silencer compiler plugin is enabled, this annotation suppresses all warnings emitted by - * scalac for some portion of source code. It can be applied on any definition (`class`, def`, - * `val`, `var`, etc.) or on arbitrary expression, e.g. {123; 456}: @silent` - */ -class silent extends Annotation