chore: forbid use DebugUtils class with checkstyle

This commit is contained in:
Skylot 2021-03-26 17:48:57 +00:00
parent c95d64909a
commit d7ffa21fbe
2 changed files with 9 additions and 3 deletions

View File

@ -119,6 +119,11 @@
<module name="OuterTypeNumber"/>
<module name="SuppressWarningsHolder"/>
<module name="IllegalType"/>
<module name="IllegalImport">
<property name="illegalClasses" value="jadx.core.utils.DebugUtils"/>
</module>
</module>
<module name="NewlineAtEndOfFile"/>

View File

@ -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);