Removing commented out @Property annotations from the core.
Change-Id: I336f6a21db531187b8e2fcfb51e7da315c615771
diff --git a/core/store/dist/src/main/java/org/onosproject/store/topology/impl/DistributedTopologyStore.java b/core/store/dist/src/main/java/org/onosproject/store/topology/impl/DistributedTopologyStore.java
index fee5d8d..0ea6845 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/topology/impl/DistributedTopologyStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/topology/impl/DistributedTopologyStore.java
@@ -125,8 +125,7 @@
private static final String LINK_METRIC = "linkMetric";
private static final String GEO_DISTANCE = "geoDistance";
- //@Property(name = "linkWeightFunction", value = DEFAULT_LINK_WEIGHT_FUNCTION,
- // label = "Default link-weight function: hopCount, linkMetric, geoDistance")
+ /** Default link-weight function: hopCount, linkMetric, geoDistance. */
private String linkWeightFunction = LINK_WEIGHT_FUNCTION_DEFAULT;
// Cluster root to broadcast points bindings to allow convergence to
@@ -165,7 +164,7 @@
protected void modified(ComponentContext context) {
Dictionary<?, ?> properties = context.getProperties();
- String newLinkWeightFunction = get(properties, "linkWeightFunction");
+ String newLinkWeightFunction = get(properties, LINK_WEIGHT_FUNCTION);
if (newLinkWeightFunction != null &&
!Objects.equals(newLinkWeightFunction, linkWeightFunction)) {
linkWeightFunction = newLinkWeightFunction;