diff --git a/java/src/main/java/org/softwareheritage/graph/backend/NodeTypesMap.java b/java/src/main/java/org/softwareheritage/graph/backend/NodeTypesMap.java
index e7a9b23..0b1bf09 100644
--- a/java/src/main/java/org/softwareheritage/graph/backend/NodeTypesMap.java
+++ b/java/src/main/java/org/softwareheritage/graph/backend/NodeTypesMap.java
@@ -1,55 +1,55 @@
package org.softwareheritage.graph.backend;
import java.io.IOException;
import it.unimi.dsi.fastutil.io.BinIO;
import it.unimi.dsi.fastutil.longs.LongBigList;
import org.softwareheritage.graph.Graph;
import org.softwareheritage.graph.Node;
/**
* Mapping between long node id and SWH node type as described in the data
* model.
*
- * The type mapping is pre-computed and dumped on disk in the {@link *
- * MapBuilder} class, then it is loaded in-memory here using fastutil LongBigList. To be
+ * The type mapping is pre-computed and dumped on disk in the {@link MapBuilder}
+ * class, then it is loaded in-memory here using
+ * fastutil LongBigList. To be
* space-efficient, the mapping is stored as a bitmap using minimum number of
* bits per {@link Node.Type}.
*
* @author The Software Heritage developers
*/
public class NodeTypesMap {
/**
* Array storing for each node its type
*/
public LongBigList nodeTypesMap;
/**
* Constructor.
*
* @param graphPath path and basename of the compressed graph
*/
public NodeTypesMap(String graphPath) throws IOException {
try {
nodeTypesMap = (LongBigList) BinIO.loadObject(graphPath + Graph.NODE_TO_TYPE);
} catch (ClassNotFoundException e) {
throw new IllegalArgumentException("Unknown class object: " + e);
}
}
/**
* Returns node type from a node long id.
*
* @param nodeId node as a long id
* @return corresponding {@link Node.Type} value
* @see org.softwareheritage.graph.Node.Type
*/
public Node.Type getType(long nodeId) {
long type = nodeTypesMap.getLong(nodeId);
return Node.Type.fromInt((int) type);
}
}