Skip to content

Commit b5eef9c

Browse files
committed
removed not needed parameter and empty lines
1 parent 5dc7891 commit b5eef9c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

dsf-tools/dsf-tools-documentation-generator/src/main/java/dev/dsf/tools/generator/DocumentationGenerator.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ private void generateDocumentation(String workingPackage)
9696
.getFieldsAnnotatedWith(dev.dsf.bpe.v1.documentation.ProcessDocumentation.class);
9797
if (!processFieldsV1.isEmpty())
9898
{
99-
100-
List<String> pluginProcessNames = getPluginProcessNames(reflections,
101-
dev.dsf.bpe.v1.ProcessPluginDefinition.class, classLoader, workingPackage, this::getV1ProcessNames);
99+
List<String> pluginProcessNames = getPluginProcessNames(dev.dsf.bpe.v1.ProcessPluginDefinition.class,
100+
classLoader, workingPackage, this::getV1ProcessNames);
102101
writeFields(processFieldsV1, processDocumentationGenerator(pluginProcessNames, ProcessDocumentation::v1),
103102
file, workingPackage);
104103
}
@@ -108,9 +107,8 @@ private void generateDocumentation(String workingPackage)
108107
.getFieldsAnnotatedWith(dev.dsf.bpe.v2.documentation.ProcessDocumentation.class);
109108
if (!processFieldsV2.isEmpty())
110109
{
111-
112-
List<String> pluginProcessNames = getPluginProcessNames(reflections,
113-
dev.dsf.bpe.v2.ProcessPluginDefinition.class, classLoader, workingPackage, this::getV2ProcessNames);
110+
List<String> pluginProcessNames = getPluginProcessNames(dev.dsf.bpe.v2.ProcessPluginDefinition.class,
111+
classLoader, workingPackage, this::getV2ProcessNames);
114112
writeFields(processFieldsV2, processDocumentationGenerator(pluginProcessNames, ProcessDocumentation::v2),
115113
file, workingPackage);
116114
}
@@ -145,9 +143,8 @@ private URL toUrl(String path)
145143
}
146144
}
147145

148-
private <D> List<String> getPluginProcessNames(Reflections reflections, Class<D> processPluginDefinitionType,
149-
ClassLoader classLoader, String workingPackage,
150-
BiFunction<D, ClassLoader, List<String>> definitionToProcessNames)
146+
private <D> List<String> getPluginProcessNames(Class<D> processPluginDefinitionType, ClassLoader classLoader,
147+
String workingPackage, BiFunction<D, ClassLoader, List<String>> definitionToProcessNames)
151148
{
152149
List<Provider<?>> definitions = ServiceLoader.load(processPluginDefinitionType, classLoader).stream()
153150
.collect(Collectors.toList());

0 commit comments

Comments
 (0)