Skip to content

Commit

Permalink
Enhanced NullSwitch to be able to simulate delay (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed May 18, 2021
1 parent 46b8d37 commit f5ba61d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public AbstractSwitch(String address, boolean state) {
}

@Override
public final synchronized boolean getState() throws IOException {
public synchronized boolean getState() throws IOException {
return state;
}

@Override
public final synchronized void setState(boolean state) throws IOException {
public synchronized void setState(boolean state) throws IOException {

ThreadContext.push("setState");

Expand Down

0 comments on commit f5ba61d

Please sign in to comment.