Skip to content

Commit b9133c1

Browse files
committed
Avoid duplicating method correlations before they go to the DB
1 parent e2f7837 commit b9133c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codepulse/src/main/scala/com/secdec/codepulse/tracer/TraceUploadData.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ object TraceUploadData {
105105

106106
def handleBinaryZip(file: File): TraceId = createAndLoadTraceData { traceData =>
107107
val builder = new CodeForestBuilder
108-
val methodCorrelationsBuilder = List.newBuilder[(String, Int)]
108+
val methodCorrelationsBuilder = collection.mutable.Map.empty[String, Int]
109109

110110
//TODO: make this configurable somehow
111111
val jspAdapter = JasperJspAdapter.default

0 commit comments

Comments
 (0)