statesystem: Fix default Eclipse format in HT_IO
Change-Id: I0de7628b48bacfb1970603bee1a5cd6821ba9acb
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/194551
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
diff --git a/statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HT_IO.java b/statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HT_IO.java
index 6e7d36c..7dd35c2 100644
--- a/statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HT_IO.java
+++ b/statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HT_IO.java
@@ -63,7 +63,7 @@
public final HT_IO fStateHistory;
public final int fSeqNumber;
- public CacheKey(HT_IO stateHistory, int seqNumber) {
+ public CacheKey(HT_IO stateHistory, int seqNumber) {
fStateHistory = stateHistory;
fSeqNumber = seqNumber;
}
@@ -93,6 +93,7 @@
private static final int CACHE_SIZE = 200;
private static final CacheLoader<CacheKey, HTNode> NODE_LOADER = new CacheLoader<CacheKey, HTNode>() {
+
@Override
public HTNode load(CacheKey key) throws IOException {
HT_IO io = key.fStateHistory;
@@ -110,7 +111,6 @@
private static final LoadingCache<CacheKey, HTNode> NODE_CACHE = CacheBuilder.newBuilder()
.maximumSize(CACHE_SIZE).build(NODE_LOADER);
-
// ------------------------------------------------------------------------
// Instance fields
// ------------------------------------------------------------------------
@@ -130,8 +130,6 @@
// Methods
// ------------------------------------------------------------------------
-
-
/**
* Standard constructor
*
@@ -204,7 +202,8 @@
throw (ClosedChannelException) cause;
}
/*
- * Other types of IOExceptions shouldn't happen at this point though.
+ * Other types of IOExceptions shouldn't happen at this point
+ * though.
*/
Activator.getDefault().logError(e.getMessage(), e);
throw new IllegalStateException(e);
@@ -216,16 +215,17 @@
*
* @param queue
* NON-EMPTY queue of node sequence numbers to read from
- * @return any node from the queue, returning cached nodes first, else resorting
- * to reading on disk.
+ * @return any node from the queue, returning cached nodes first, else
+ * resorting to reading on disk.
* @throws ClosedChannelException
* Usually happens because the file was closed while we were
- * reading. Instead of using a big reader-writer lock, we'll just
- * catch this exception.
+ * reading. Instead of using a big reader-writer lock, we'll
+ * just catch this exception.
*/
public @NonNull HTNode readNode(Deque<Integer> queue) throws ClosedChannelException {
/*
- * Use an iterator in order to remove efficiently from the queue position
+ * Use an iterator in order to remove efficiently from the queue
+ * position
*/
Iterator<Integer> iterator = queue.iterator();
while (iterator.hasNext()) {
@@ -322,8 +322,8 @@
}
/**
- * Seek the given FileChannel to the position corresponding to the node that has
- * seqNumber
+ * Seek the given FileChannel to the position corresponding to the node that
+ * has seqNumber
*
* @param fc
* the channel to seek