chore: don't use nullable annotations from RxJava

This commit is contained in:
Skylot
2025-05-24 22:16:10 +01:00
parent f33a2e4768
commit fb02e32a6a
4 changed files with 4 additions and 8 deletions
+3
View File
@@ -126,6 +126,9 @@
</module> </module>
<module name="IllegalImport"> <module name="IllegalImport">
<property name="illegalClasses" value="jadx.core.utils.DebugUtils"/> <property name="illegalClasses" value="jadx.core.utils.DebugUtils"/>
<!-- don't use nullable annotations from RxJava -->
<property name="illegalClasses" value="io.reactivex.rxjava3.annotations.NonNull"/>
<property name="illegalClasses" value="io.reactivex.rxjava3.annotations.Nullable"/>
</module> </module>
<module name="RegexpSinglelineJava"> <module name="RegexpSinglelineJava">
<property name="id" value="printstacktrace"/> <property name="id" value="printstacktrace"/>
@@ -16,8 +16,6 @@ import java.util.regex.Pattern;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import io.reactivex.rxjava3.annotations.NonNull;
import jadx.core.utils.StringUtils; import jadx.core.utils.StringUtils;
import jadx.core.utils.log.LogUtils; import jadx.core.utils.log.LogUtils;
import jadx.gui.device.protocol.ADB.JDWPProcessListener; import jadx.gui.device.protocol.ADB.JDWPProcessListener;
@@ -208,7 +206,6 @@ public class ADBDevice {
return getProcessList("ps | grep " + pkg); return getProcessList("ps | grep " + pkg);
} }
@NonNull
public List<Process> getProcessList() throws IOException { public List<Process> getProcessList() throws IOException {
return getProcessList("ps"); return getProcessList("ps");
} }
@@ -8,8 +8,6 @@ import java.util.stream.Collectors;
import javax.swing.ImageIcon; import javax.swing.ImageIcon;
import io.reactivex.rxjava3.annotations.NonNull;
import jadx.gui.utils.NLS; import jadx.gui.utils.NLS;
import jadx.gui.utils.UiUtils; import jadx.gui.utils.UiUtils;
import jadx.gui.utils.shortcut.Shortcut; import jadx.gui.utils.shortcut.Shortcut;
@@ -165,7 +163,6 @@ public enum ActionModel {
return null; return null;
} }
@NonNull
public Shortcut getDefaultShortcut() { public Shortcut getDefaultShortcut() {
return defaultShortcut; return defaultShortcut;
} }
@@ -40,11 +40,10 @@ import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeNode; import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath; import javax.swing.tree.TreePath;
import org.jetbrains.annotations.Nullable;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import io.reactivex.rxjava3.annotations.Nullable;
import jadx.core.utils.StringUtils; import jadx.core.utils.StringUtils;
import jadx.gui.device.debugger.DebugController; import jadx.gui.device.debugger.DebugController;
import jadx.gui.device.protocol.ADBDevice; import jadx.gui.device.protocol.ADBDevice;