Skip to content

Commit

Permalink
[ISSUE #8622] rename lookingForProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
onewe committed Sep 21, 2022
1 parent cd3765a commit 43db4ab
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ boolean containsKey(PropertiesPropertySource propertiesPropertySource, String ke
Properties asProperties() {
List<Properties> propertiesList = new ArrayList<>(8);

propertiesList = lookingForProperties(this, propertiesList);
propertiesList = lookForProperties(this, propertiesList);

Properties ret = new Properties();
final ListIterator<Properties> iterator = propertiesList.listIterator(propertiesList.size());
Expand All @@ -89,13 +89,13 @@ Properties asProperties() {
return ret;
}

List<Properties> lookingForProperties(PropertiesPropertySource propertiesPropertySource, List<Properties> propertiesList) {
List<Properties> lookForProperties(PropertiesPropertySource propertiesPropertySource, List<Properties> propertiesList) {
propertiesList.add(propertiesPropertySource.properties);
final PropertiesPropertySource parent = propertiesPropertySource.parent;
if (parent == null) {
return propertiesList;
}
return lookingForProperties(parent, propertiesList);
return lookForProperties(parent, propertiesList);
}

synchronized void setProperty(String key, String value) {
Expand Down

0 comments on commit 43db4ab

Please sign in to comment.