Skip to content

Commit

Permalink
rmi: Suppress spotbugs false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Jun 28, 2024
1 parent ecd9ecb commit 1935b73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@
import java.net.Socket;
import java.rmi.server.RMIClientSocketFactory;

import com.kohlschutter.annotations.compiletime.SuppressFBWarnings;

/**
* An implementation of {@link RMIClientSocketFactory}.
*
* @see AFRMISocketFactory
*/
@SuppressFBWarnings("SING_SINGLETON_IMPLEMENTS_SERIALIZABLE")
public final class DefaultRMIClientSocketFactory implements RMIClientSocketFactory, Serializable {
private static final long serialVersionUID = 1L;

private static final DefaultRMIClientSocketFactory INSTANCE = new DefaultRMIClientSocketFactory();

private DefaultRMIClientSocketFactory() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@
import java.net.ServerSocket;
import java.rmi.server.RMIServerSocketFactory;

import com.kohlschutter.annotations.compiletime.SuppressFBWarnings;

/**
* An implementation of {@link RMIServerSocketFactory}.
*
* @see AFRMISocketFactory
*/
@SuppressFBWarnings({
"SING_SINGLETON_IMPLEMENTS_SERIALIZABLE", "SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"})
public class DefaultRMIServerSocketFactory implements RMIServerSocketFactory, Serializable {
private static final long serialVersionUID = 1L;
private static final DefaultRMIServerSocketFactory INSTANCE = new DefaultRMIServerSocketFactory();
Expand Down

0 comments on commit 1935b73

Please sign in to comment.