Replace more occurences of new String(CONSTANT) with CONSTANT
Original commit: elastic/x-pack-elasticsearch@339de6350f
This commit is contained in:
parent
7275d48bbd
commit
14df2663ae
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue