66import com .github .joschi .jadconfig .documentation .printers .ConfigurationSection ;
77import com .github .joschi .jadconfig .documentation .printers .CsvDocsPrinter ;
88import com .github .joschi .jadconfig .documentation .printers .DocsPrinter ;
9- import jakarta .annotation .Nonnull ;
109import org .apache .commons .lang3 .ClassUtils ;
1110
1211import java .io .FileWriter ;
@@ -26,7 +25,6 @@ static void main(String[] args) throws IOException {
2625 generator .generateDocumentation (parseDocumentationFormat (args ), ConfigurationBeansSPI ::loadConfigurationBeans );
2726 }
2827
29- @ Nonnull
3028 private static DocumentationFormat parseDocumentationFormat (String [] args ) {
3129 if (args .length != 2 ) {
3230 throw new IllegalArgumentException ("This command needs two arguments - a format and file path. For example" + "csv ${project.build.directory}/configuration-documentation.csv" );
@@ -88,7 +86,6 @@ private static ConfigurationSection beanToConfigSections(Object configurationBea
8886 return new ConfigurationSection (sectionHeading , sectionDescription , sortedSections , entriesWithoutSection );
8987 }
9088
91- @ Nonnull
9289 private static List <ConfigurationSection > sectionsFromEntries (List <ConfigurationEntryWithSection > entries ) {
9390 final Collection <ConfigurationSection > sections = entries .stream ()
9491 .filter (ConfigurationEntryWithSection ::hasSection )
@@ -97,7 +94,6 @@ private static List<ConfigurationSection> sectionsFromEntries(List<Configuration
9794 .sorted (Comparator .comparing (ConfigurationSection ::hasPriority , Comparator .reverseOrder ())).toList ();
9895 }
9996
100- @ Nonnull
10197 private static List <ConfigurationEntry > getEntriesWithoutSection (List <ConfigurationEntryWithSection > entries ) {
10298 return entries .stream ()
10399 .filter (e -> !e .hasSection ())
0 commit comments