Skip to content

Commit

Permalink
Minor plural cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Aug 26, 2024
1 parent 9deb570 commit c15a8d3
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void execute() throws Exception {
/**
* Adds arguments to pass to the tool.
*
* @param args the argument to add
* @param args tbe list of arguments
* @return this operation
*/
@SuppressWarnings({"unchecked"})
Expand All @@ -81,11 +81,11 @@ public T toolArgs(List<String> args) {
/**
* Adds arguments to pass to the tool.
*
* @param arg one or more argument
* @param args one or more arguments
* @return this operation
*/
public T toolArgs(String... arg) {
return toolArgs(List.of(arg));
public T toolArgs(String... args) {
return toolArgs(List.of(args));
}

/**
Expand All @@ -100,7 +100,7 @@ public List<String> toolArgs() {
/**
* Parses arguments to pass to the tool from the given files.
*
* @param files the list of files
* @param files one or more files
* @return this operation instance
* @throws FileNotFoundException if a file cannot be found
*/
Expand All @@ -111,7 +111,7 @@ public T toolArgsFromFile(String... files) throws IOException {
/**
* Parses arguments to pass to the tool from the given files.
*
* @param files the list of files
* @param files one or more files
* @return this operation instance
* @throws FileNotFoundException if a file cannot be found
*/
Expand All @@ -133,7 +133,7 @@ public T toolArgsFromFile(List<File> files) throws IOException {
/**
* Parses arguments to pass to the tool from the given files.
*
* @param files the list of files
* @param files one or more files
* @return this operation instance
* @throws FileNotFoundException if a file cannot be found
*/
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/rife/bld/operations/JlinkOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public JlinkOperation() {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JlinkOperation cmdFiles(String... files) {
Expand All @@ -38,7 +38,7 @@ public JlinkOperation cmdFiles(String... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JlinkOperation cmdFiles(List<File> files) {
Expand All @@ -49,7 +49,7 @@ public JlinkOperation cmdFiles(List<File> files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JlinkOperation cmdFiles(File... files) {
Expand All @@ -59,7 +59,7 @@ public JlinkOperation cmdFiles(File... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JlinkOperation cmdFiles(Path... files) {
Expand All @@ -69,7 +69,7 @@ public JlinkOperation cmdFiles(Path... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JlinkOperation cmdFilesPaths(List<Path> files) {
Expand All @@ -80,7 +80,7 @@ public JlinkOperation cmdFilesPaths(List<Path> files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JlinkOperation cmdFilesStrings(List<String> files) {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/rife/bld/operations/JlinkOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class JlinkOptions extends LinkedHashMap<String, String> {
* <p>
* Module can also be {@link #ALL_MODULE_PATH}
*
* @param modules one or more module
* @param modules one or more modules
* @return this map of options
*/
public JlinkOptions addModules(List<String> modules) {
Expand All @@ -41,7 +41,7 @@ public JlinkOptions addModules(List<String> modules) {
* <p>
* Module can also be {@link #ALL_MODULE_PATH}
*
* @param modules one or more module
* @param modules one or more modules
* @return this map of options
*/
public JlinkOptions addModules(String... modules) {
Expand Down Expand Up @@ -153,7 +153,7 @@ public JlinkOptions launcher(String name, String module, String mainClass) {
/**
* Limit the universe of observable modules.
*
* @param modules one or more module
* @param modules one or more modules
* @return this map of options
*/
public JlinkOptions limitModule(List<String> modules) {
Expand All @@ -163,7 +163,7 @@ public JlinkOptions limitModule(List<String> modules) {
/**
* Limit the universe of observable modules.
*
* @param modules one or more module
* @param modules one or more modules
* @return this map of options
*/
public JlinkOptions limitModule(String... modules) {
Expand Down Expand Up @@ -325,7 +325,7 @@ public JlinkOptions stripNativeCommands(boolean stripNativeCommands) {
/**
* Suggest providers that implement the given service types from the module path.
*
* @param names one or more provider name
* @param names one or more provider names
* @return this map of options
*/
public JlinkOptions suggestProviders(List<String> names) {
Expand All @@ -336,7 +336,7 @@ public JlinkOptions suggestProviders(List<String> names) {
/**
* Suggest providers that implement the given service types from the module path.
*
* @param names one or more provider name
* @param names one or more provider names
* @return this map of options
*/
public JlinkOptions suggestProviders(String... names) {
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/rife/bld/operations/JmodOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public List<String> cmdFiles() {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JmodOperation cmdFiles(String... files) {
Expand All @@ -50,7 +50,7 @@ public JmodOperation cmdFiles(String... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JmodOperation cmdFiles(File... files) {
Expand All @@ -61,7 +61,7 @@ public JmodOperation cmdFiles(File... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JmodOperation cmdFiles(Path... files) {
Expand All @@ -71,7 +71,7 @@ public JmodOperation cmdFiles(Path... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JmodOperation cmdFilesPaths(List<Path> files) {
Expand All @@ -82,7 +82,7 @@ public JmodOperation cmdFilesPaths(List<Path> files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JmodOperation cmdFilesStrings(List<String> files) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/rife/bld/operations/JmodOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public JmodOptions dryRun(boolean dryRun) {
/**
* Exclude files matching the supplied pattern list.
*
* @param patterns one or more pattern
* @param patterns one or more patterns
* @return the map of options
*/
public JmodOptions exclude(List<FilePattern> patterns) {
Expand All @@ -207,7 +207,7 @@ public JmodOptions exclude(List<FilePattern> patterns) {
/**
* Exclude files matching the supplied pattern list.
*
* @param patterns one or more pattern
* @param patterns one or more patterns
* @return the map of options
*/
public JmodOptions exclude(FilePattern... patterns) {
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/rife/bld/operations/JpackageOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public JpackageOperation() {
* Additional alternative launchers can be built using this option, and this option can be used to build multiple
* additional launchers.
*
* @param launchers one or more {@link JpackageOperation.Launcher}
* @param launchers one or more {@link Launcher launchers}
* @return this operation instance
*/
public JpackageOperation addLauncher(List<Launcher> launchers) {
Expand All @@ -49,7 +49,7 @@ public JpackageOperation addLauncher(List<Launcher> launchers) {
* Additional alternative launchers can be built using this option, and this option can be used to build multiple
* additional launchers.
*
* @param launchers one or more {@link JpackageOperation.Launcher}
* @param launchers one or more {@link Launcher launchers}
* @return this operation instance
*/
public JpackageOperation addLauncher(Launcher... launchers) {
Expand All @@ -59,7 +59,7 @@ public JpackageOperation addLauncher(Launcher... launchers) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JpackageOperation cmdFiles(List<File> files) {
Expand All @@ -70,7 +70,7 @@ public JpackageOperation cmdFiles(List<File> files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JpackageOperation cmdFiles(File... files) {
Expand All @@ -80,7 +80,7 @@ public JpackageOperation cmdFiles(File... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JpackageOperation cmdFiles(Path... files) {
Expand All @@ -90,7 +90,7 @@ public JpackageOperation cmdFiles(Path... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JpackageOperation cmdFiles(String... files) {
Expand All @@ -100,7 +100,7 @@ public JpackageOperation cmdFiles(String... files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JpackageOperation cmdFilesPaths(List<Path> files) {
Expand All @@ -111,7 +111,7 @@ public JpackageOperation cmdFilesPaths(List<Path> files) {
/**
* Read options and/or mode from file(s).
*
* @param files one or more file
* @param files one or more files
* @return this operation instance
*/
public JpackageOperation cmdFilesStrings(List<String> files) {
Expand Down
Loading

0 comments on commit c15a8d3

Please sign in to comment.