Replace more occurences of new String(CONSTANT) with CONSTANT

Original commit: elastic/x-pack-elasticsearch@339de6350f
This commit is contained in:
Ryan Ernst 2016-04-18 14:54:14 -07:00
parent 7275d48bbd
commit 14df2663ae
7 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,7 @@ public class ClusterStateResolver extends MonitoringIndexNameResolver.Timestampe
}
static final class Fields {
static final String CLUSTER_STATE = new String(TYPE);
static final String CLUSTER_STATE = TYPE;
static final String STATUS = "status";
}
}

View File

@ -63,6 +63,6 @@ public class ClusterStatsResolver extends MonitoringIndexNameResolver.Timestampe
}
static final class Fields {
static final String CLUSTER_STATS = new String(TYPE);
static final String CLUSTER_STATS = TYPE;
}
}

View File

@ -54,7 +54,7 @@ public class DiscoveryNodeResolver extends MonitoringIndexNameResolver.Data<Disc
}
static final class Fields {
static final String NODE = new String(TYPE);
static final String NODE = TYPE;
static final String NAME = "name";
static final String TRANSPORT_ADDRESS = "transport_address";
static final String ATTRIBUTES = "attributes";

View File

@ -61,7 +61,7 @@ public class IndexRecoveryResolver extends MonitoringIndexNameResolver.Timestamp
}
static final class Fields {
static final String INDEX_RECOVERY = new String(TYPE);
static final String INDEX_RECOVERY = TYPE;
static final String SHARDS = "shards";
static final String INDEX_NAME = "index_name";
}

View File

@ -105,7 +105,7 @@ public class IndexStatsResolver extends MonitoringIndexNameResolver.Timestamped<
}
static final class Fields {
static final String INDEX_STATS = new String(TYPE);
static final String INDEX_STATS = TYPE;
static final String INDEX = "index";
static final String TOTAL = "total";
static final String PRIMARIES = "primaries";

View File

@ -66,6 +66,6 @@ public class IndicesStatsResolver extends MonitoringIndexNameResolver.Timestampe
}
static final class Fields {
static final String INDICES_STATS = new String(TYPE);
static final String INDICES_STATS = TYPE;
}
}

View File

@ -120,7 +120,7 @@ public class NodeStatsResolver extends MonitoringIndexNameResolver.Timestamped<N
}
static final class Fields {
static final String NODE_STATS = new String(TYPE);
static final String NODE_STATS = TYPE;
static final String NODE_ID = "node_id";
static final String NODE_MASTER = "node_master";
static final String MLOCKALL = "mlockall";