FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

When generate doc, ignore the hidden parameters. by horizonzy · Pull Request #16298 · apache/pulsar · GitHub

/ pulsar Public
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ private void generateDocument(StringBuilder sb, String module, JCommander obj) {
sb.append("|Flag|Description|Default|\n");
sb.append("|---|---|---|\n");
}
options.forEach((option) ->
sb.append("| `").append(option.getNames())
.append("` | ").append(option.getDescription().replace("\n", " "))
.append("|").append(option.getDefault()).append("|\n")
options.stream().filter(ele -> !ele.getParameterAnnotation().hidden()).forEach((option) ->
sb.append("| `").append(option.getNames())
.append("` | ").append(option.getDescription().replace("\n", " "))
.append("|").append(option.getDefault()).append("|\n")
);
});
System.out.println(sb.toString());
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected String generateDocument(String module, JCommander parentCmd) {
sb.append("|Flag|Description|Default|\n");
sb.append("|---|---|---|\n");
List<ParameterDescription> options = cmd.getParameters();
options.forEach((option) ->
options.stream().filter(ele -> !ele.getParameterAnnotation().hidden()).forEach((option) ->
sb.append("| `").append(option.getNames())
.append("` | ").append(option.getDescription().replace("\n", " "))
.append("|").append(option.getDefault()).append("|\n")
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static String generateDocument(String module, JCommander parentCmd) {
sb.append("|Flag|Description|Default|\n");
sb.append("|---|---|---|\n");
List<ParameterDescription> options = cmd.getParameters();
options.forEach((option) ->
options.stream().filter(ele -> !ele.getParameterAnnotation().hidden()).forEach((option) ->
sb.append("| `").append(option.getNames())
.append("` | ").append(option.getDescription().replace("\n", " "))
.append("|").append(option.getDefault()).append("|\n")
Expand Down

Back | FazBrowse Home | New Git URL