Fix a bunch of static analysis warnings

This commit is contained in:
Cameron Gutman
2014-10-30 00:21:34 -07:00
parent 419c4c5592
commit e8de7908fd
19 changed files with 52 additions and 52 deletions

View File

@@ -42,7 +42,7 @@ public class ComputerManagerService extends Service {
private boolean stopped;
private DiscoveryService.DiscoveryBinder discoveryBinder;
private ServiceConnection discoveryServiceConnection = new ServiceConnection() {
private final ServiceConnection discoveryServiceConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder binder) {
synchronized (discoveryServiceConnection) {
DiscoveryService.DiscoveryBinder privateBinder = ((DiscoveryService.DiscoveryBinder)binder);
@@ -84,7 +84,7 @@ public class ComputerManagerService extends Service {
// Wait for the bind notification
discoveryServiceConnection.wait(1000);
}
} catch (InterruptedException e) {
} catch (InterruptedException ignored) {
}
}
}
@@ -93,7 +93,7 @@ public class ComputerManagerService extends Service {
while (activePolls.get() != 0) {
try {
Thread.sleep(250);
} catch (InterruptedException e) {}
} catch (InterruptedException ignored) {}
}
}

View File

@@ -54,7 +54,7 @@ public class IdentityManager {
if (reader != null) {
try {
reader.close();
} catch (IOException e) {}
} catch (IOException ignored) {}
}
}
}
@@ -76,7 +76,7 @@ public class IdentityManager {
if (writer != null) {
try {
writer.close();
} catch (IOException e) {}
} catch (IOException ignored) {}
}
}