Skip to content

Commit 56f10c2

Browse files
Cosmetic: Fix javadoc warnings (#164)
1 parent 19fb8f2 commit 56f10c2

File tree

55 files changed

+421
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+421
-0
lines changed

generator/src/main/java/io/wcm/devops/conga/generator/Generator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public final class Generator {
4444
private final Map<String, Environment> environments;
4545

4646
/**
47+
* Constructor.
4748
* @param options Generator options
4849
*/
4950
public Generator(GeneratorOptions options) {

generator/src/main/java/io/wcm/devops/conga/generator/GeneratorException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ public final class GeneratorException extends RuntimeException {
2626
private static final long serialVersionUID = 1L;
2727

2828
/**
29+
* Constructor.
2930
* @param message Message
3031
*/
3132
public GeneratorException(String message) {
3233
super(message);
3334
}
3435

3536
/**
37+
* Constructor.
3638
* @param message Message
3739
* @param cause Cause
3840
*/

generator/src/main/java/io/wcm/devops/conga/generator/GeneratorOptions.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ public final class GeneratorOptions {
7979
private Logger logger = LoggerFactory.getLogger(Generator.class);
8080

8181
/**
82+
* Gets base directory.
8283
* @return Base directory for resolving relative file references
8384
*/
8485
public File getBaseDir() {
8586
return this.baseDir;
8687
}
8788

8889
/**
90+
* Sets base directory.
8991
* @param value Base directory for resolving relative file references
9092
* @return this
9193
*/
@@ -103,6 +105,7 @@ public File getRoleDir() {
103105
}
104106

105107
/**
108+
* Sets role directory.
106109
* @param value Directory with role definitions. Filename without extension = role name.
107110
* @return this
108111
*/
@@ -120,6 +123,7 @@ public File getTemplateDir() {
120123
}
121124

122125
/**
126+
* Sets template directory.
123127
* @param value Template base directory
124128
* @return this
125129
*/
@@ -137,6 +141,7 @@ public File getEnvironmentDir() {
137141
}
138142

139143
/**
144+
* Sets environment directory.
140145
* @param value Directory with environment definitions. Filename without extension = environment name.
141146
* @return this
142147
*/
@@ -154,6 +159,7 @@ public File getDestDir() {
154159
}
155160

156161
/**
162+
* Sets destination directory.
157163
* @param value Destination directory for generated file.
158164
* @return this
159165
*/
@@ -171,6 +177,7 @@ public boolean isDeleteBeforeGenerate() {
171177
}
172178

173179
/**
180+
* Sets delete before generate flag.
174181
* @param value Delete before generate
175182
* @return this
176183
*/
@@ -188,6 +195,7 @@ public String getVersion() {
188195
}
189196

190197
/**
198+
* Sets version.
191199
* @param value Version
192200
* @return this
193201
*/
@@ -205,6 +213,7 @@ public boolean isAllowSymlinks() {
205213
}
206214

207215
/**
216+
* Sets allow symlinks flag.
208217
* @param value Allow symlinks
209218
* @return this
210219
*/
@@ -222,6 +231,7 @@ public ModelExport getModelExport() {
222231
}
223232

224233
/**
234+
* Sets model export.
225235
* @param value Model export
226236
* @return this
227237
*/
@@ -231,6 +241,7 @@ public GeneratorOptions modelExport(ModelExport value) {
231241
}
232242

233243
/**
244+
* Gets value provider configuration.
234245
* @return Configuration for value providers.
235246
* The outer map uses the value provider plugin name as key, the inner map contain the config properties.
236247
*/
@@ -239,6 +250,7 @@ public Map<String, Map<String, Object>> getValueProviderConfig() {
239250
}
240251

241252
/**
253+
* Sets value provider configuration.
242254
* @param value Configuration for value providers.
243255
* @return this
244256
*/
@@ -248,13 +260,15 @@ public GeneratorOptions valueProviderConfig(Map<String, Map<String, Object>> val
248260
}
249261

250262
/**
263+
* Gets generic plugin configuration.
251264
* @return Generic plugin configuration.
252265
*/
253266
public Map<String, Map<String, Object>> getGenericPluginConfig() {
254267
return this.genericPluginConfig;
255268
}
256269

257270
/**
271+
* Sets generic plugin configuration.
258272
* @param value Generic plugin configuration.
259273
* @return this
260274
*/
@@ -272,6 +286,7 @@ public Object getContainerContext() {
272286
}
273287

274288
/**
289+
* Sets container context.
275290
* @param value Container-specific context object
276291
* @return this
277292
*/
@@ -281,13 +296,15 @@ public GeneratorOptions containerContext(Object value) {
281296
}
282297

283298
/**
299+
* Gets container classpath URLs.
284300
* @return List of classpath URLs to CONGA artifact dependencies and container classpath elements.
285301
*/
286302
public List<URL> getContainerClasspathUrls() {
287303
return this.containerClasspathUrls;
288304
}
289305

290306
/**
307+
* Sets container classpath URLs.
291308
* @param value List of URLs to CONGA artifact dependencies defined in the container.
292309
* @return this
293310
*/
@@ -297,13 +314,15 @@ public GeneratorOptions containerClasspathUrls(List<URL> value) {
297314
}
298315

299316
/**
317+
* Gets plugin manager.
300318
* @return Plugin manager
301319
*/
302320
public PluginManager getPluginManager() {
303321
return this.pluginManager;
304322
}
305323

306324
/**
325+
* Sets plugin manager.
307326
* @param value Plugin manager
308327
* @return this
309328
*/
@@ -313,13 +332,15 @@ public GeneratorOptions pluginManager(PluginManager value) {
313332
}
314333

315334
/**
335+
* Gets dependency version builder.
316336
* @return Function to build a list of dependency versions for a given environment
317337
*/
318338
public Function<Environment, Collection<String>> getDependencyVersionBuilder() {
319339
return this.dependencyVersionBuilder;
320340
}
321341

322342
/**
343+
* Sets dependency version builder.
323344
* @param value Function to build a list of dependency versions for a given environment
324345
* @return this
325346
*/
@@ -329,13 +350,15 @@ public GeneratorOptions dependencyVersionBuilder(Function<Environment, Collectio
329350
}
330351

331352
/**
353+
* Gets container version info.
332354
* @return Version information from container, e.g. configured Maven plugin versions
333355
*/
334356
public Map<String, String> getContainerVersionInfo() {
335357
return this.containerVersionInfo;
336358
}
337359

338360
/**
361+
* Sets container version info.
339362
* @param value Version information from container, e.g. configured Maven plugin versions
340363
* @return this
341364
*/
@@ -345,13 +368,15 @@ public GeneratorOptions containerVersionInfo(Map<String, String> value) {
345368
}
346369

347370
/**
371+
* Gets logger.
348372
* @return Logger
349373
*/
350374
public Logger getLogger() {
351375
return this.logger;
352376
}
353377

354378
/**
379+
* Sets logger.
355380
* @param value Logger
356381
* @return this
357382
*/

generator/src/main/java/io/wcm/devops/conga/generator/UrlFileManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public final class UrlFileManager {
4545
private static final Pattern URL_WITH_PREFIX = Pattern.compile("^[a-zA-Z]+:.*$");
4646

4747
/**
48+
* Constructor.
4849
* @param pluginManager Plugin manager
4950
* @param context URL file plugin context
5051
*/

generator/src/main/java/io/wcm/devops/conga/generator/export/NodeModelExport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public final class NodeModelExport {
5959
private final List<ExportNodeRoleData> roleData = new ArrayList<>();
6060

6161
/**
62+
* Constructor.
6263
* @param nodeDir Target directory for node
6364
* @param node Node
6465
* @param environment Environment

generator/src/main/java/io/wcm/devops/conga/generator/handlebars/CharsetAwareTemplateLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class CharsetAwareTemplateLoader extends AbstractTemplateLoader {
3838
private final String charset;
3939

4040
/**
41+
* Constructor.
4142
* @param templateDirs Template base directories
4243
* @param charset Charset for reading template files
4344
*/

generator/src/main/java/io/wcm/devops/conga/generator/handlebars/HandlebarsManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public Object apply(Object context, Options helperOptions) throws IOException {
8383
});
8484

8585
/**
86+
* Constructor.
8687
* @param templateDirs Template base directories
8788
* @param pluginContextOptions Plugin context options
8889
*/

generator/src/main/java/io/wcm/devops/conga/generator/plugins/fileheader/AbstractFileHeader.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,30 +78,60 @@ public final Void apply(FileContext file, FileHeaderContext context) {
7878
return null;
7979
}
8080

81+
/**
82+
* Sanitizes comment line.
83+
* @param line Comment line
84+
* @return Sanitized comment line
85+
*/
8186
protected String sanitizeComment(String line) {
8287
return line;
8388
}
8489

90+
/**
91+
* Gets line break character(s).
92+
* @return Line break character(s)
93+
*/
8594
protected String getLineBreak() {
8695
return "\n";
8796
}
8897

98+
/**
99+
* Gets comment block start.
100+
* @return Comment block start string
101+
*/
89102
protected String getCommentBlockStart() {
90103
return null;
91104
}
92105

106+
/**
107+
* Gets comment block end.
108+
* @return Comment block end string
109+
*/
93110
protected String getCommentBlockEnd() {
94111
return null;
95112
}
96113

114+
/**
115+
* Gets comment line prefix.
116+
* @return Comment line prefix string
117+
*/
97118
protected String getCommentLinePrefix() {
98119
return null;
99120
}
100121

122+
/**
123+
* Gets block suffix.
124+
* @return Block suffix string
125+
*/
101126
protected String getBlockSuffix() {
102127
return null;
103128
}
104129

130+
/**
131+
* Gets insert position for file header.
132+
* @param content File content
133+
* @return Insert position
134+
*/
105135
protected int getInsertPosition(@SuppressWarnings({ "unused", "java:S1172" }) String content) {
106136
return 0;
107137
}

generator/src/main/java/io/wcm/devops/conga/generator/spi/Plugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
public interface Plugin {
2626

2727
/**
28+
* Gets plugin name.
2829
* @return Plugin name to be referenced in definition file
2930
*/
3031
String getName();

generator/src/main/java/io/wcm/devops/conga/generator/spi/ValidationException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ public final class ValidationException extends RuntimeException {
2626
private static final long serialVersionUID = 1L;
2727

2828
/**
29+
* Constructor.
2930
* @param message Message
3031
*/
3132
public ValidationException(String message) {
3233
super(message);
3334
}
3435

3536
/**
37+
* Constructor.
3638
* @param message Message
3739
* @param cause Cause
3840
*/

0 commit comments

Comments
 (0)