Provide default implementation of stop() method in Index interface
Most index implementations have an empty stop() method. Make use of Java 8 and make the empty stop() method the default implementation in the Index interface, so that most indexes don't need to implement it. Change-Id: I3889b4a13f7253e4129254f946040f8714c3a570 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -108,8 +108,4 @@ public class FakeChangeIndex implements ChangeIndex {
|
||||
public void markReady(boolean ready) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user