Skip to content

Commit

Permalink
refs: eclipse#9 improve useConverter javadoc wording
Browse files Browse the repository at this point in the history
  • Loading branch information
struberg committed May 17, 2018
1 parent 7c8c2ee commit 81e4255
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/main/java/javax/config/ConfigValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ public interface ConfigValue<T> {
ConfigValue<Set<T>> asSet();

/**
* Sets the type of the configuration entry to the given class, sets the converter to the one given and
* returns this builder. If a converter is provided for one of the types supported by
* default (see {@link #as(Class)} then the provided converter is used instead of the built-in one.
* Defines a {@link Converter} to be used instead of the default Converter resolving logic.
*
* @param converter The converter for the target type
* @return This builder as a typed ConfigValue
Expand Down Expand Up @@ -120,7 +118,7 @@ public interface ConfigValue<T> {
* Note that that the cache will get flushed if a {@code ConfigSource} notifies
* the underlying {@link Config} about a value change.
* This is done by invoking the callback provided to the {@code ConfigSource} via
* {@link javax.config.spi.ConfigSource#setOnAttributeChange(Consumer)}.
* {@link javax.config.spi.ConfigSource#setOnAttributeChange(java.util.function.Consumer)}.
*
* @param value the amount of the TimeUnit to wait
* @param timeUnit the TimeUnit for the value
Expand Down

0 comments on commit 81e4255

Please sign in to comment.