@@ -96,9 +96,8 @@ private void generateDocumentation(String workingPackage)
96
96
.getFieldsAnnotatedWith (dev .dsf .bpe .v1 .documentation .ProcessDocumentation .class );
97
97
if (!processFieldsV1 .isEmpty ())
98
98
{
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 );
102
101
writeFields (processFieldsV1 , processDocumentationGenerator (pluginProcessNames , ProcessDocumentation ::v1 ),
103
102
file , workingPackage );
104
103
}
@@ -108,9 +107,8 @@ private void generateDocumentation(String workingPackage)
108
107
.getFieldsAnnotatedWith (dev .dsf .bpe .v2 .documentation .ProcessDocumentation .class );
109
108
if (!processFieldsV2 .isEmpty ())
110
109
{
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 );
114
112
writeFields (processFieldsV2 , processDocumentationGenerator (pluginProcessNames , ProcessDocumentation ::v2 ),
115
113
file , workingPackage );
116
114
}
@@ -145,9 +143,8 @@ private URL toUrl(String path)
145
143
}
146
144
}
147
145
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 )
151
148
{
152
149
List <Provider <?>> definitions = ServiceLoader .load (processPluginDefinitionType , classLoader ).stream ()
153
150
.collect (Collectors .toList ());
0 commit comments