Reformat code: fix indent
Change-Id: I70885aa88d7395530bf649b6f26808e5d49287e8
diff --git a/src/main/java/net/onrc/onos/core/matchaction/MatchActionIdGeneratorWithIdBlockAllocator.java b/src/main/java/net/onrc/onos/core/matchaction/MatchActionIdGeneratorWithIdBlockAllocator.java
index 2c92ff7..6fa39a7 100644
--- a/src/main/java/net/onrc/onos/core/matchaction/MatchActionIdGeneratorWithIdBlockAllocator.java
+++ b/src/main/java/net/onrc/onos/core/matchaction/MatchActionIdGeneratorWithIdBlockAllocator.java
@@ -12,26 +12,26 @@
public class MatchActionIdGeneratorWithIdBlockAllocator
implements MatchActionIdGenerator {
- private final IdBlockAllocator allocator;
- private IdBlock idBlock;
+ private final IdBlockAllocator allocator;
+ private IdBlock idBlock;
- /**
- * Creates a FlowId generator instance using specified ID block allocator.
- *
- * @param allocator the ID block allocator to be used
- */
- public MatchActionIdGeneratorWithIdBlockAllocator(IdBlockAllocator allocator) {
- this.allocator = checkNotNull(allocator);
- this.idBlock = allocator.allocateUniqueIdBlock();
- }
+ /**
+ * Creates a FlowId generator instance using specified ID block allocator.
+ *
+ * @param allocator the ID block allocator to be used
+ */
+ public MatchActionIdGeneratorWithIdBlockAllocator(IdBlockAllocator allocator) {
+ this.allocator = checkNotNull(allocator);
+ this.idBlock = allocator.allocateUniqueIdBlock();
+ }
- @Override
- public synchronized MatchActionId getNewId() {
- try {
- return new MatchActionId(idBlock.getNextId());
- } catch (UnavailableIdException e) {
- idBlock = allocator.allocateUniqueIdBlock();
- return new MatchActionId(idBlock.getNextId());
- }
+ @Override
+ public synchronized MatchActionId getNewId() {
+ try {
+ return new MatchActionId(idBlock.getNextId());
+ } catch (UnavailableIdException e) {
+ idBlock = allocator.allocateUniqueIdBlock();
+ return new MatchActionId(idBlock.getNextId());
}
+ }
}