Skip to content

Commit 0c2b065

Browse files
committed
Small improvement in List/Set property javadoc & param name
1 parent 245cb4b commit 0c2b065

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/main/java/ch/jalu/configme/properties/ListProperty.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ public ListProperty(@NotNull String path, @NotNull PropertyType<E> entryType, @N
4242
/**
4343
* Constructor. Use {@link #withListType}.
4444
*
45+
* @param listType the list type
4546
* @param path the path of the property
46-
* @param type the list type
4747
* @param defaultValue the default value of the property
4848
*/
4949
// Constructor arguments are usually (path, type, defaultValue), but this is not possible here because there
5050
// are other constructors with the same argument order.
51-
protected ListProperty(@NotNull PropertyType<List<E>> type, @NotNull String path, @NotNull List<E> defaultValue) {
52-
super(path, type, Collections.unmodifiableList(defaultValue));
51+
protected ListProperty(@NotNull PropertyType<List<E>> listType, @NotNull String path,
52+
@NotNull List<E> defaultValue) {
53+
super(path, listType, Collections.unmodifiableList(defaultValue));
5354
}
5455

5556
/**

src/main/java/ch/jalu/configme/properties/SetProperty.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public SetProperty(@NotNull String path, @NotNull PropertyType<E> entryType, @No
4545
/**
4646
* Constructor. Use {@link #withSetType}.
4747
*
48+
* @param setType the type of the set
4849
* @param path the path of the property
49-
* @param type the type of the set
5050
* @param defaultValue the default value of the property
5151
*/
5252
// Constructor arguments are usually (path, type, defaultValue), but this is not possible here because there
5353
// are other constructors with the same argument order.
54-
protected SetProperty(@NotNull PropertyType<Set<E>> type, @NotNull String path, @NotNull Set<E> defaultValue) {
55-
super(path, type, Collections.unmodifiableSet(defaultValue));
54+
protected SetProperty(@NotNull PropertyType<Set<E>> setType, @NotNull String path, @NotNull Set<E> defaultValue) {
55+
super(path, setType, Collections.unmodifiableSet(defaultValue));
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)