Skip to content

Commit bb64033

Browse files
replace split by string utils substring method
1 parent 3b4d13d commit bb64033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectable/src/main/java/com/blackduck/integration/detectable/detectables/gradle/inspection/parse/GradleReportLineParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public GradleTreeNode parseLine(String line, Map<String, String> metadata) {
6969
} else {
7070
String group = gav.get(0);
7171
String name = gav.get(1);
72-
String version = gav.get(2).split("\\s")[0];
72+
String version = StringUtils.substringBefore(gav.get(2), " ");
7373
return GradleTreeNode.newGav(level, group, name, version);
7474
}
7575
}

0 commit comments

Comments
 (0)