findbugs sam/bob

This commit is contained in:
zzz
2014-03-12 12:27:23 +00:00
parent 51911bd9a8
commit 96b4c6b219
3 changed files with 15 additions and 10 deletions

View File

@@ -141,7 +141,7 @@ public class SAMv3Handler extends SAMv1Handler
server.send(msg, addr);
}
class Listener implements Runnable {
static class Listener implements Runnable {
final DatagramChannel server;
@@ -209,7 +209,7 @@ public class SAMv3Handler extends SAMv1Handler
}
}
public class SessionRecord
public static class SessionRecord
{
protected final String m_dest ;
protected final Properties m_props ;
@@ -262,10 +262,10 @@ public class SAMv3Handler extends SAMv1Handler
{
static final long serialVersionUID = 0x1 ;
class ExistingId extends Exception {
static class ExistingId extends Exception {
static final long serialVersionUID = 0x1 ;
}
class ExistingDest extends Exception {
static class ExistingDest extends Exception {
static final long serialVersionUID = 0x1 ;
}

View File

@@ -39,7 +39,7 @@ public class SAMv3StreamSession extends SAMStreamSession implements SAMv3Handle
private final static Log _log = new Log ( SAMv3StreamSession.class );
protected final int BUFFER_SIZE = 1024 ;
protected static final int BUFFER_SIZE = 1024 ;
protected final Object socketServerLock = new Object();
protected I2PServerSocket socketServer = null;
@@ -279,7 +279,8 @@ public class SAMv3StreamSession extends SAMStreamSession implements SAMv3Handle
}
}
}
public class Pipe extends Thread
public static class Pipe extends Thread
{
final ReadableByteChannel in ;
final WritableByteChannel out ;