Skip to content

Commit

Permalink
[config] fix javadocs in BaseOption and ModifiableOption
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Dec 12, 2024
1 parent 1ed5829 commit a1b7461
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public T get() {
}

/**
* @return whether this option's current value has changed
* Sets this option to the given value.
*/
public void set(T newValue) {
requireLoaded();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ public void set(T value) {
protected abstract T unmodifiable(T value);

/**
* modifies the current value of this option
*
* @return whether this option's current value was modified.
* Modifies the current value of this option.
*/
public void modify(Consumer<T> modifier) {
// save the state of the current value
Expand All @@ -159,9 +157,7 @@ public void modify(Consumer<T> modifier) {
}

/**
* modifies the current value of this option or throws an IO exception
*
* @return whether this option's current value was modified.
* Modifies the current value of this option or throws an IO exception.
*/
public void modifyIO(IOConsumer<T> modifier) throws IOException {
// save the state of the current value
Expand Down

0 comments on commit a1b7461

Please sign in to comment.