Skip to content

Commit 25a861c

Browse files
committed
Remove unneeded fields
1 parent 66f2ea9 commit 25a861c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

server/src/test/java/org/elasticsearch/cluster/ClusterStateIT.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,8 @@ public void onFailure(String source, Exception e) {
246246

247247
public static class NodePlugin extends CustomPlugin {
248248

249-
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
250-
static final Optional<String> NODE_PLUGIN_FEATURE = Optional.of("node");
251-
252249
public Optional<String> getFeature() {
253-
return NODE_PLUGIN_FEATURE;
250+
return Optional.of("node");
254251
}
255252

256253
static final int VALUE = randomInt();
@@ -279,12 +276,9 @@ protected Custom getInstance() {
279276

280277
public static class NodeAndTransportClientPlugin extends CustomPlugin {
281278

282-
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
283-
static final Optional<String> FEATURE = Optional.of("node-and-transport-client");
284-
285279
@Override
286280
protected Optional<String> getFeature() {
287-
return FEATURE;
281+
return Optional.of("node-and-transport-client");
288282
}
289283

290284
static final int VALUE = randomInt();

0 commit comments

Comments
 (0)