This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/ant-antlibs-cyclonedx.git
commit b8da901473c2f7d905f474bb53bfcbc29c8361d9 Author: Stefan Bodewig <[email protected]> AuthorDate: Fri Aug 14 06:51:59 2026 +0200 stop using raw types --- src/main/org/apache/ant/cyclonedx/ComponentBomTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java b/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java index d4970cc..325ea3c 100644 --- a/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java +++ b/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java @@ -388,7 +388,7 @@ public class ComponentBomTask extends Task { ToolInformation antlibToolInformation = ToolData.getToolInformation(specVersion.getVersion()); if (!toolComponents.isEmpty()) { List<org.cyclonedx.model.Component> tools = - new ArrayList(antlibToolInformation.getComponents()); + new ArrayList<>(antlibToolInformation.getComponents()); for (Component c : toolComponents) { tools.add(c.toAdditionalCycloneDxComponent(specVersion.getVersion())); } @@ -560,7 +560,7 @@ public class ComponentBomTask extends Task { } Matcher m = MAVEN_PURL_PATTERN.matcher(bomRef); if (m.matches()) { - return new AbstractMap.SimpleImmutableEntry(m.group(1), m.group(2)); + return new AbstractMap.SimpleImmutableEntry<>(m.group(1), m.group(2)); } return null; }
