Skip to content

Commit

Permalink
chore: forbid use DebugUtils class with checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Mar 29, 2021
1 parent c95d649 commit d7ffa21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down
7 changes: 4 additions & 3 deletions jadx-core/src/main/java/jadx/core/utils/DebugUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.jetbrains.annotations.TestOnly;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -39,8 +38,10 @@
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);

Expand Down

0 comments on commit d7ffa21

Please sign in to comment.