Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit c466283

Browse files
authored
Merge pull request #9 from MrSnix/experimental
Fixing javadocs warning
2 parents af04437 + 863aa24 commit c466283

6 files changed

Lines changed: 35 additions & 25 deletions

File tree

src/main/java/org/tinyconfiguration/abc/AbstractConfiguration.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ protected AbstractConfiguration() {
3333

3434
/**
3535
* Protected container constructor with parameters
36+
*
37+
* @param name The configuration name
38+
* @param version The configuration version
39+
* @param filename The configuration filename
40+
* @param pathname The configuration pathname
3641
*/
3742
protected AbstractConfiguration(String name, String version, String filename, String pathname) {
3843
this.name = name;

src/main/java/org/tinyconfiguration/abc/AbstractProperty.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ protected AbstractProperty() {
2626

2727
/**
2828
* Protected constructor with parameters
29+
*
30+
* @param key The property identifier
31+
* @param value The property default value
32+
* @param description The property description
2933
*/
3034
protected AbstractProperty(String key, Value value, String description) {
3135
this.key = key;

src/main/java/org/tinyconfiguration/abc/data/Value.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public final boolean isArray() {
5555

5656
/**
5757
* Check if the datatype object is a byte datatype
58-
* <p></p>
58+
*
5959
* <p>More specifically it looks on the following types:
6060
* <ul>
6161
* <li>{@code byte}</li>
@@ -71,7 +71,7 @@ public final boolean isByte() {
7171

7272
/**
7373
* Check if the datatype object is a byte array datatype
74-
* <p></p>
74+
*
7575
* <p>More specifically it looks on the following types:
7676
* <ul>
7777
* <li>{@code byte[]}</li>
@@ -89,7 +89,7 @@ public final boolean isByteArray() {
8989

9090
/**
9191
* Check if the datatype object is a short datatype
92-
* <p></p>
92+
*
9393
* <p>More specifically it looks on the following types:
9494
* <ul>
9595
* <li>{@code short}</li>
@@ -107,7 +107,7 @@ public final boolean isShort() {
107107

108108
/**
109109
* Check if the datatype object is a short array datatype
110-
* <p></p>
110+
*
111111
* <p>More specifically it looks on the following types:
112112
* <ul>
113113
* <li>{@code short[]}</li>
@@ -124,7 +124,7 @@ public final boolean isShortArray() {
124124

125125
/**
126126
* Check if the datatype object is an integer datatype
127-
* <p></p>
127+
*
128128
* <p>More specifically it looks on the following types:
129129
* <ul>
130130
* <li>{@code int}</li>
@@ -140,7 +140,7 @@ public final boolean isInteger() {
140140

141141
/**
142142
* Check if the datatype object is a int array datatype
143-
* <p></p>
143+
*
144144
* <p>More specifically it looks on the following types:
145145
* <ul>
146146
* <li>{@code int[]}</li>
@@ -157,7 +157,7 @@ public final boolean isIntegerArray() {
157157

158158
/**
159159
* Check if the datatype object is a long datatype
160-
* <p></p>
160+
*
161161
* <p>More specifically it looks on the following types:
162162
* <ul>
163163
* <li>{@code long}</li>
@@ -173,7 +173,7 @@ public final boolean isLong() {
173173

174174
/**
175175
* Check if the datatype object is a long array datatype
176-
* <p></p>
176+
*
177177
* <p>More specifically it looks on the following types:
178178
* <ul>
179179
* <li>{@code long[]}</li>
@@ -190,7 +190,7 @@ public final boolean isLongArray() {
190190

191191
/**
192192
* Check if the datatype object is a float datatype
193-
* <p></p>
193+
*
194194
* <p>More specifically it looks on the following types:
195195
* <ul>
196196
* <li>{@code float}</li>
@@ -206,7 +206,7 @@ public final boolean isFloat() {
206206

207207
/**
208208
* Check if the datatype object is a float array datatype
209-
* <p></p>
209+
*
210210
* <p>More specifically it looks on the following types:
211211
* <ul>
212212
* <li>{@code float[]}</li>
@@ -223,7 +223,7 @@ public final boolean isFloatArray() {
223223

224224
/**
225225
* Check if the datatype object is a double datatype
226-
* <p></p>
226+
*
227227
* <p>More specifically it looks on the following types:
228228
* <ul>
229229
* <li>{@code double}</li>
@@ -239,7 +239,7 @@ public final boolean isDouble() {
239239

240240
/**
241241
* Check if the datatype object is a double array datatype
242-
* <p></p>
242+
*
243243
* <p>More specifically it looks on the following types:
244244
* <ul>
245245
* <li>{@code double[]}</li>
@@ -256,7 +256,7 @@ public final boolean isDoubleArray() {
256256

257257
/**
258258
* Check if the datatype object is a boolean datatype
259-
* <p></p>
259+
*
260260
* <p>More specifically it looks on the following types:
261261
* <ul>
262262
* <li>{@code boolean}</li>
@@ -272,7 +272,7 @@ public final boolean isBoolean() {
272272

273273
/**
274274
* Check if the datatype object is a boolean array datatype
275-
* <p></p>
275+
*
276276
* <p>More specifically it looks on the following types:
277277
* <ul>
278278
* <li>{@code boolean[]}</li>
@@ -289,7 +289,7 @@ public final boolean isBooleanArray() {
289289

290290
/**
291291
* Check if the datatype object is a character datatype
292-
* <p></p>
292+
*
293293
* <p>More specifically it looks on the following types:
294294
* <ul>
295295
* <li>{@code character}</li>
@@ -305,7 +305,7 @@ public final boolean isCharacter() {
305305

306306
/**
307307
* Check if the datatype object is a character array datatype
308-
* <p></p>
308+
*
309309
* <p>More specifically it looks on the following types:
310310
* <ul>
311311
* <li>{@code char[]}</li>
@@ -322,7 +322,7 @@ public final boolean isCharacterArray() {
322322

323323
/**
324324
* Check if the datatype object is a string datatype
325-
* <p></p>
325+
*
326326
* <p>More specifically it looks on the following types:
327327
* <ul>
328328
* <li>{@code String}</li>
@@ -338,7 +338,7 @@ public final boolean isString() {
338338

339339
/**
340340
* Check if the datatype object is a String array datatype
341-
* <p></p>
341+
*
342342
* <p>More specifically it looks on the following types:
343343
* <ul>
344344
* <li>{@code String[]}</li>
@@ -355,7 +355,7 @@ public final boolean isStringArray() {
355355

356356
/**
357357
* Check if the datatype object is a numeric datatype
358-
* <p></p>
358+
*
359359
* More it performs the following tests:
360360
* <ul>
361361
* <li>{@link Value#isByte()} </li>
@@ -375,7 +375,7 @@ public final boolean isNumeric() {
375375

376376
/**
377377
* Check if the datatype object is a numeric array datatype
378-
* <p></p>
378+
*
379379
* More specifically, it performs the following tests:
380380
*
381381
* <ul>
@@ -398,7 +398,7 @@ public final boolean isNumericArray() {
398398

399399
/**
400400
* Check if the datatype object is a textual datatype
401-
* <p></p>
401+
*
402402
* More it performs the following tests:
403403
* <ul>
404404
* <li>{@link Value#isCharacter()} </li>
@@ -414,7 +414,7 @@ public final boolean isText() {
414414

415415
/**
416416
* Check if the datatype object is a textual array datatype
417-
* <p></p>
417+
*
418418
* More it performs the following tests:
419419
* <ul>
420420
* <li>{@link Value#isArray()} </li>

src/main/java/org/tinyconfiguration/abc/io/handlers/AbstractReader.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public interface AbstractReader<C extends AbstractConfiguration<?>, P extends Ab
1515
* This method allow to translate a property object inside an intermediate representation
1616
*
1717
* @param property The property instance
18+
* @throws Exception If the decode process fails
1819
*/
1920
void decode(P property) throws Exception;
2021

@@ -30,6 +31,7 @@ public interface AbstractReader<C extends AbstractConfiguration<?>, P extends Ab
3031
* This method generate an intermediate object representation of the configuration from the file
3132
*
3233
* @param instance The configuration instance
34+
* @return The new object representation
3335
* @throws Exception If something goes wrong during the process
3436
*/
3537
Object fromFile(C instance) throws Exception;
@@ -39,6 +41,7 @@ public interface AbstractReader<C extends AbstractConfiguration<?>, P extends Ab
3941
*
4042
* @param property The property instance
4143
* @param obj The intermediate object
44+
* @throws Exception If the decode process fails
4245
*/
4346
void __decode_obj(P property, I obj) throws Exception;
4447

@@ -47,6 +50,7 @@ public interface AbstractReader<C extends AbstractConfiguration<?>, P extends Ab
4750
*
4851
* @param property The property instance
4952
* @param obj The intermediate array
53+
* @throws Exception If the decode process fails
5054
*/
5155
void __decode_array(P property, I obj) throws Exception;
5256
}

src/main/java/org/tinyconfiguration/imp/basic/Configuration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ public Builder setVersion(String version) {
191191
/**
192192
* Sets the configuration filename.
193193
*
194-
* <p></p>
195194
* <p>This method is expecting a {@link String} value formatted as follow:</p>
196195
*
197196
* <ul>
@@ -222,7 +221,6 @@ public Builder setFilename(String filename) {
222221
/**
223222
* Sets the configuration pathname.
224223
*
225-
* <p></p>
226224
* <p>This method is expecting a {@link String} value formatted as follow:</p>
227225
*
228226
* <ul>

src/main/java/org/tinyconfiguration/imp/basic/Property.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public boolean isOptional() {
6767

6868
/**
6969
* Gets the validity performing the specified {@link Predicate} test
70-
* <p></p>
7170
* It returns <u>always</u> <b>true</b>, if no validation function was defined
7271
*
7372
* @return The boolean value representing the validity state

0 commit comments

Comments
 (0)