Skip to content

Commit 7a6a7ba

Browse files
committed
fix: remove uncessary comments and varaible for debug.
1 parent 12a827a commit 7a6a7ba

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/main/java/com/redhat/exhort/providers/JavaMavenProvider.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ private Content generateSbomFromEffectivePom() throws IOException {
172172
.filter(dep -> ignored.stream().noneMatch(artifact -> artifact.isCoordinatesEquals(dep)))
173173
.forEach(d -> sbom.addDependency(sbom.getRoot(), d, null));
174174

175-
String sbomString = sbom.getAsJsonString();
176175
// build and return content for constructing request to the backend
177176
return new Content(sbom.getAsJsonString().getBytes(), Api.CYCLONEDX_MEDIA_TYPE);
178177
}
@@ -245,32 +244,26 @@ private List<DependencyAggregator> getDependencies(final Path manifestPath) thro
245244
while (reader.hasNext()) {
246245
reader.next(); // get the next event
247246
if (reader.isStartElement() && "dependencyManagement".equals(reader.getLocalName())) {
248-
// entering dependencyManagement section
249247
insideDependencyManagement = true;
250248
continue;
251249
}
252250
if (reader.isEndElement() && "dependencyManagement".equals(reader.getLocalName())) {
253-
// exiting dependencyManagement section
254251
insideDependencyManagement = false;
255252
continue;
256253
}
257254
if (reader.isStartElement() && "plugins".equals(reader.getLocalName())) {
258-
// entering plugins section
259255
insidePlugins = true;
260256
continue;
261257
}
262258
if (reader.isEndElement() && "plugins".equals(reader.getLocalName())) {
263-
// exiting plugins section
264259
insidePlugins = false;
265260
continue;
266261
}
267262
if (reader.isStartElement() && "exclusions".equals(reader.getLocalName())) {
268-
// entering exclusions section
269263
insideExclusions = true;
270264
continue;
271265
}
272266
if (reader.isEndElement() && "exclusions".equals(reader.getLocalName())) {
273-
// exiting exclusions section
274267
insideExclusions = false;
275268
continue;
276269
}

0 commit comments

Comments
 (0)