Skip to content

Commit

Permalink
Add documentation to NativeImageResourceBuildItem's constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Apr 22, 2024
1 parent 2585bb0 commit 98552ea
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@ public final class NativeImageResourceBuildItem extends MultiBuildItem {

private final List<String> resources;

/**
* Constructs a new instance of {@code NativeImageResourceBuildItem} with the specified resources.
*
* @param resources the paths of the resources to include in the native image.
* Doesn't support globs or regular expressions.
*/
public NativeImageResourceBuildItem(String... resources) {
this.resources = Arrays.asList(resources);
}

/**
* Constructs a new instance of {@code NativeImageResourceBuildItem} with the specified resources.
*
* @param resources the paths of the resources to include in the native image.
* Doesn't support globs or regular expressions.
*/
public NativeImageResourceBuildItem(List<String> resources) {
this.resources = new ArrayList<>(resources);
}
Expand Down

0 comments on commit 98552ea

Please sign in to comment.