Made two private classes static.

This commit is contained in:
akwizgran
2013-06-13 11:50:01 +01:00
parent 4431e502f7
commit 3833eac4e2

View File

@@ -493,7 +493,7 @@ class DroidtoothPlugin implements DuplexPlugin {
} }
} }
private class DiscoveryReceiver extends BroadcastReceiver { private static class DiscoveryReceiver extends BroadcastReceiver {
private final CountDownLatch finished = new CountDownLatch(1); private final CountDownLatch finished = new CountDownLatch(1);
private final List<String> addresses = new ArrayList<String>(); private final List<String> addresses = new ArrayList<String>();
@@ -517,7 +517,7 @@ class DroidtoothPlugin implements DuplexPlugin {
} }
} }
private class BluetoothListenerThread extends Thread { private static class BluetoothListenerThread extends Thread {
private final SocketReceiver receiver; private final SocketReceiver receiver;
private final BluetoothServerSocket serverSocket; private final BluetoothServerSocket serverSocket;
@@ -536,7 +536,7 @@ class DroidtoothPlugin implements DuplexPlugin {
if(!receiver.setSocket(s)) { if(!receiver.setSocket(s)) {
if(LOG.isLoggable(INFO)) if(LOG.isLoggable(INFO))
LOG.info("Closing redundant connection"); LOG.info("Closing redundant connection");
tryToClose(s); s.close();
} }
} catch(IOException e) { } catch(IOException e) {
// This is expected when the socket is closed // This is expected when the socket is closed