1313import java .util .ArrayList ;
1414import java .util .LinkedHashMap ;
1515import java .util .List ;
16- import java .util .Map ;
1716
1817/**
1918 * Writes and merges per-source SCIP shards produced by the compiler plugin.
@@ -91,7 +90,7 @@ private static Document mergeDocuments(Document a, Document b) {
9190 builder .addAllOccurrences (occurrences .values ());
9291
9392 // Deduplicate symbols by symbol string; merge relationships and documentation.
94- Map <String , SymbolInformation > bySymbol = new LinkedHashMap <>();
93+ LinkedHashMap <String , SymbolInformation > bySymbol = new LinkedHashMap <>();
9594 for (SymbolInformation info : a .getSymbolsList ()) bySymbol .put (info .getSymbol (), info );
9695 for (SymbolInformation info : b .getSymbolsList ()) {
9796 SymbolInformation existing = bySymbol .get (info .getSymbol ());
@@ -105,7 +104,7 @@ private static Document mergeDocuments(Document a, Document b) {
105104 private static SymbolInformation mergeSymbol (SymbolInformation a , SymbolInformation b ) {
106105 SymbolInformation .Builder builder = b .toBuilder ();
107106 // Merge relationships, deduplicating by structural equality with deterministic ordering.
108- Map <Relationship , Relationship > rels = new LinkedHashMap <>();
107+ LinkedHashMap <Relationship , Relationship > rels = new LinkedHashMap <>();
109108 for (Relationship r : a .getRelationshipsList ()) rels .put (r , r );
110109 for (Relationship r : b .getRelationshipsList ()) rels .put (r , r );
111110 builder .clearRelationships ().addAllRelationships (rels .values ());
0 commit comments