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
The following commit(s) were added to refs/heads/main by this push:
new bdef35b explicitly mention BuildException in throws clause
bdef35b is described below
commit bdef35beb6c5fed46c4e2e3abda4d0ec0825eace
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Aug 1 15:44:14 2026 +0200
explicitly mention BuildException in throws clause
---
src/main/org/apache/ant/cyclonedx/SbomLinkComponentResolver.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/org/apache/ant/cyclonedx/SbomLinkComponentResolver.java
b/src/main/org/apache/ant/cyclonedx/SbomLinkComponentResolver.java
index 4142921..d6f06f5 100644
--- a/src/main/org/apache/ant/cyclonedx/SbomLinkComponentResolver.java
+++ b/src/main/org/apache/ant/cyclonedx/SbomLinkComponentResolver.java
@@ -58,7 +58,7 @@ class SbomLinkComponentResolver {
* @param parent component the link applies to
* @return Components that are direct dependencies of the parent component
*/
- Collection<Component> resolve(Component parent) throws IOException {
+ Collection<Component> resolve(Component parent) throws IOException,
BuildException {
Bom bom = readLinkedSbom();
if (bom.getMetadata() == null) {
throw new BuildException("referenced SBOM file lacks metadata");