diff --git a/client/src/main/java/com/alibaba/nacos/client/env/PropertiesPropertySource.java b/client/src/main/java/com/alibaba/nacos/client/env/PropertiesPropertySource.java index 695f9b47b6c..6ae9d1fa6e3 100644 --- a/client/src/main/java/com/alibaba/nacos/client/env/PropertiesPropertySource.java +++ b/client/src/main/java/com/alibaba/nacos/client/env/PropertiesPropertySource.java @@ -78,7 +78,7 @@ boolean containsKey(PropertiesPropertySource propertiesPropertySource, String ke Properties asProperties() { List propertiesList = new ArrayList<>(8); - propertiesList = lookingForProperties(this, propertiesList); + propertiesList = lookForProperties(this, propertiesList); Properties ret = new Properties(); final ListIterator iterator = propertiesList.listIterator(propertiesList.size()); @@ -89,13 +89,13 @@ Properties asProperties() { return ret; } - List lookingForProperties(PropertiesPropertySource propertiesPropertySource, List propertiesList) { + List lookForProperties(PropertiesPropertySource propertiesPropertySource, List 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) {