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
10 3 0 0

Files

Class Bugs
org.newsclub.net.unix.memory.SharedMemory 3

org.newsclub.net.unix.memory.SharedMemory

Bug Category Details Line Priority
Method org.newsclub.net.unix.memory.SharedMemory.init(MemoryImplUtilInternal) uses intrinsic lock of class org.newsclub.net.unix.memory.SharedMemory for synchronization, that is exposed by static org.newsclub.net.unix.memory.SharedMemory.createAnonymous(J[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createAnonymous(J)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createExclusively(Ljava/lang/String;JLjava/util/Set;[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createExclusively(Ljava/lang/String;J[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createOrOpenExisting(Ljava/lang/String;JLjava/util/Set;[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createOrOpenExisting(Ljava/lang/String;J[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createOrReuseExisting(Ljava/lang/String;JLjava/util/Set;[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.createOrReuseExisting(Ljava/lang/String;J[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.openExisting(Ljava/lang/String;[Lorg/newsclub/net/unix/memory/SharedMemoryOption;)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.shmOpen(Ljava/lang/String;Ljava/util/Set;IJ)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.shmOpen0(Ljava/lang/String;Ljava/util/Set;IJ)Lorg/newsclub/net/unix/memory/SharedMemory;,\nstatic org.newsclub.net.unix.memory.SharedMemory.using(Ljava/io/FileDescriptor;)Lorg/newsclub/net/unix/memory/SharedMemory;. SECURITY USO_UNSAFE_METHOD_SYNCHRONIZATION 145-157 Medium
Static synchronized method org.newsclub.net.unix.memory.SharedMemory.init(MemoryImplUtilInternal) uses intrinsic lock of class org.newsclub.net.unix.memory.SharedMemory for synchronization, exposing the class to untrusted code. SECURITY USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION 145-157 Medium
Suppressing annotation OVERLY_PERMISSIVE_FILE_PERMISSION on the class org.newsclub.net.unix.memory.SharedMemory is unnecessary STYLE US_USELESS_SUPPRESSION_ON_CLASS 51-677 Medium