From d7ffa21fbe977809bbca1cf3e1b903416cf026cb Mon Sep 17 00:00:00 2001 From: Skylot Date: Fri, 26 Mar 2021 17:48:57 +0000 Subject: [PATCH] chore: forbid use DebugUtils class with checkstyle --- config/checkstyle/checkstyle.xml | 5 +++++ jadx-core/src/main/java/jadx/core/utils/DebugUtils.java | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 84d93c1c..1edbb178 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -119,6 +119,11 @@ + + + + + diff --git a/jadx-core/src/main/java/jadx/core/utils/DebugUtils.java b/jadx-core/src/main/java/jadx/core/utils/DebugUtils.java index cbe7e34e..1395865e 100644 --- a/jadx-core/src/main/java/jadx/core/utils/DebugUtils.java +++ b/jadx-core/src/main/java/jadx/core/utils/DebugUtils.java @@ -13,7 +13,6 @@ import java.util.function.Predicate; import java.util.stream.Collectors; import java.util.stream.Stream; -import org.jetbrains.annotations.TestOnly; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -39,8 +38,10 @@ import jadx.core.dex.visitors.regions.TracedRegionVisitor; import jadx.core.utils.exceptions.CodegenException; import jadx.core.utils.exceptions.JadxException; -@Deprecated -@TestOnly +/** + * Use these methods only for debug purpose. + * CheckStyle will reject usage of this class. + */ public class DebugUtils { private static final Logger LOG = LoggerFactory.getLogger(DebugUtils.class); -- GitLab