Skip to content

Apache Lucene open-source search software

Shallow copy of properties does not maintain defaults. Hence returning the original object as is.

Shalin Shekhar Mangar9f80d2cd26d1
diff --git a/src/java/org/apache/solr/core/CoreDescriptor.java b/src/java/org/apache/solr/core/CoreDescriptor.java
index 29acfd33e21..428a7316713 100644
--- a/src/java/org/apache/solr/core/CoreDescriptor.java
+++ b/src/java/org/apache/solr/core/CoreDescriptor.java
@@ -117,16 +117,8 @@ public class CoreDescriptor implements Cloneable {
return coreContainer;
}
- /**
- * Get this core's properties
- *
- * @return a shallow copy of this core's properties
- */
public Properties getCoreProperties() {
- Properties p = new Properties();
- if (coreProperties != null)
- p.putAll(coreProperties);
- return p;
+ return coreProperties;
}
/**