File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
server/src/test/java/org/elasticsearch/cluster Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments