Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method name in TestConfigBuilder fixed #6526

Merged
merged 1 commit into from May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -159,10 +159,10 @@ public TestConfigBuilder withValue(@NonNull final String propertyName, @NonNull
}

/**
* This method returns the {@link Configuration} instance. If the method is called for the first time the {@link
* Configuration} instance will be created. All values that have been set (see {@link #withValue(String, int)})
* methods will be part of the config. Next to this the config will support all config data record types (see {@link
* ConfigData}) that are on the classpath.
* This method returns the {@link Configuration} instance. If the method is called for the first time the
* {@link Configuration} instance will be created. All values that have been set (see
* {@link #withValue(String, int)}) methods will be part of the config. Next to this the config will support all
* config data record types (see {@link ConfigData}) that are on the classpath.
*
* @return the created configuration
*/
Expand Down Expand Up @@ -233,7 +233,7 @@ public TestConfigBuilder withValidator(@NonNull final ConfigValidator validator)
* @return the {@link TestConfigBuilder} instance (for fluent API)
*/
@NonNull
public <T extends Record> TestConfigBuilder withValidator(@NonNull final Class<T> type) {
public <T extends Record> TestConfigBuilder withConfigDataType(@NonNull final Class<T> type) {
checkConfigState();
builder.withConfigDataType(type);
return this;
Expand Down