Fork me on GitHub

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.10.2

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
37 12 0 0

Files

Class Bugs
org.newsclub.net.unix.rmi.AFNaming 2
org.newsclub.net.unix.rmi.AFRMIServiceImpl 1
org.newsclub.net.unix.rmi.AFRMISocketFactory 1
org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory 3
org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory 1
org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory 1
org.newsclub.net.unix.rmi.RemoteFileDescriptorBase 3

org.newsclub.net.unix.rmi.AFNaming

Bug Category Details Line Priority
Method org.newsclub.net.unix.rmi.AFNaming.createRegistry() uses intrinsic lock of class org.newsclub.net.unix.rmi.AFNaming for synchronization, that is exposed by static org.newsclub.net.unix.rmi.AFNaming.getInstance(ILorg/newsclub/net/unix/rmi/AFNamingProvider;)Lorg/newsclub/net/unix/rmi/AFNaming;. SECURITY USO_UNSAFE_METHOD_SYNCHRONIZATION 374-404 Medium
Method org.newsclub.net.unix.rmi.AFNaming.getSocketFactory() uses intrinsic lock of class org.newsclub.net.unix.rmi.AFNaming for synchronization, that is exposed by static org.newsclub.net.unix.rmi.AFNaming.getInstance(ILorg/newsclub/net/unix/rmi/AFNamingProvider;)Lorg/newsclub/net/unix/rmi/AFNaming;. SECURITY USO_UNSAFE_METHOD_SYNCHRONIZATION 130 Medium

org.newsclub.net.unix.rmi.AFRMIServiceImpl

Bug Category Details Line Priority
Suppressing annotation PREDICTABLE_RANDOM on the method org.newsclub.net.unix.rmi.AFRMIServiceImpl.randomPort() is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 57-73 Medium

org.newsclub.net.unix.rmi.AFRMISocketFactory

Bug Category Details Line Priority
Suppressing annotation OBJECT_DESERIALIZATION on the method org.newsclub.net.unix.rmi.AFRMISocketFactory.readExternal(ObjectInput) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 366-369 Medium

org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory

Bug Category Details Line Priority
Suppressing annotation CT_CONSTRUCTOR_THROW on the method new org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory(AFNaming, File) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 112-114 Medium
Suppressing annotation PATH_TRAVERSAL_IN on the method org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory.getFile(int) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 175-179 Medium
Suppressing annotation PATH_TRAVERSAL_IN on the method org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory.readNamingInstance(ObjectInput) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 119-121 Medium

org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory

Bug Category Details Line Priority
Suppressing annotation UNENCRYPTED_SOCKET on the method org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory.createSocket(String, int) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 53-56 Medium

org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory

Bug Category Details Line Priority
Suppressing annotation UNENCRYPTED_SERVER_SOCKET on the method org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory.createServerSocket(int) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 57-59 Medium

org.newsclub.net.unix.rmi.RemoteFileDescriptorBase

Bug Category Details Line Priority
Dead store to $L6 in org.newsclub.net.unix.rmi.RemoteFileDescriptorBase.writeExternal(ObjectOutput) STYLE DLS_DEAD_LOCAL_STORE 158 Medium
Suppressing annotation OBJECT_DESERIALIZATION on the method org.newsclub.net.unix.rmi.RemoteFileDescriptorBase.readExternal(ObjectInput) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 177-227 Medium
Suppressing annotation PREDICTABLE_RANDOM on the method org.newsclub.net.unix.rmi.RemoteFileDescriptorBase.writeExternal(ObjectOutput) is unnecessary STYLE US_USELESS_SUPPRESSION_ON_METHOD 108-170 Medium