Removed unnecessary throws declarations.

This commit is contained in:
akwizgran
2012-11-24 13:35:04 +00:00
parent dc932764ec
commit d706363866
3 changed files with 4 additions and 4 deletions

View File

@@ -188,7 +188,7 @@ class DroidtoothPlugin implements DuplexPlugin {
}
}
public void stop() throws IOException {
public void stop() {
running = false;
if(socket != null) tryToClose(socket);
}

View File

@@ -48,7 +48,7 @@ abstract class TcpPlugin implements DuplexPlugin {
this.pollingInterval = pollingInterval;
}
public boolean start() throws IOException {
public boolean start() {
running = true;
pluginExecutor.execute(new Runnable() {
public void run() {
@@ -130,7 +130,7 @@ abstract class TcpPlugin implements DuplexPlugin {
}
}
public void stop() throws IOException {
public void stop() {
running = false;
if(socket != null) tryToClose(socket);
}

View File

@@ -67,7 +67,7 @@ class TorPlugin implements DuplexPlugin {
return "TOR_PLUGIN_NAME";
}
public boolean start() throws IOException {
public boolean start() {
synchronized(this) {
running = true;
}