Skip to content

Commit

Permalink
style(settings): fix language and rename JvmSettings.getPatternedKey
Browse files Browse the repository at this point in the history
"getPatternizedKey" is strange language, do better.
  • Loading branch information
poikilotherm committed Oct 11, 2023
1 parent a209f43 commit 0ff7ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public String getScopedKey() {
return this.scopedKey;
}

public Pattern getPatternizedKey() {
public Pattern getPatternedKey() {
return Pattern.compile(
getScopedKey()
.replace(SCOPE_SEPARATOR, "\\.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void importJvmSettings(List<JvmSettings> aliasedSettings) {
// Aliases with placeholders need to be compiled into a regex
aliasedSettings.stream()
.filter(JvmSettings::needsVarArgs)
.forEach(setting -> varArgAliases.put(setting.getPatternizedKey(), setting.getOldNames()));
.forEach(setting -> varArgAliases.put(setting.getPatternedKey(), setting.getOldNames()));
}


Expand Down

0 comments on commit 0ff7ed3

Please sign in to comment.