Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c0372b9

Browse files
committedOct 12, 2024·
fix:(review) removed a unnecessary interface, and added a javadoc comment.
1 parent 2ad2f60 commit c0372b9

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed
 

‎src/main/java/com/github/sttk/cliargs/Cmd.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ public List<OptCfg> optCfgs() {
135135
}
136136

137137
/**
138-
* {@inheritDoc}
138+
* Returns a {@code String} object representing the content of this object.
139+
*
140+
* @return A stirng representation of the content of this object.
139141
*/
140142
@Override
141143
public String toString() {

‎src/main/java/com/github/sttk/cliargs/OptCfg.java

-14
Original file line numberDiff line numberDiff line change
@@ -372,20 +372,6 @@ static Param validator(Validator validator) {
372372
}
373373
}
374374

375-
/**
376-
* Is the functional interface to process option arguments when the option has been parsed.
377-
*/
378-
@FunctionalInterface
379-
public interface OnParsed {
380-
/**
381-
* Processes the option arguments.
382-
*
383-
* @param optArgs The list of the option arguments.
384-
* @throws FailToSetOptionStoreField If failed to set the field value of the option store.
385-
*/
386-
void process(List<String> optArgs) throws FailToSetOptionStoreField;
387-
}
388-
389375
/**
390376
* Makes an {@link OptCfg} array from the fields opt the option store with the annotation
391377
* {@link Opt}.

0 commit comments

Comments
 (0)
Please sign in to comment.