Skip to content

Commit d0f05d6

Browse files
committed
Switching to preferred syntax for boolean false checks
1 parent 2e29cdb commit d0f05d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/license/XPackLicenseState.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private static String[] machineLearningAcknowledgementMessages(OperationMode cur
209209
private static String[] logstashAcknowledgementMessages(OperationMode currentMode, OperationMode newMode) {
210210
switch (newMode) {
211211
case BASIC:
212-
if (!isBasic(currentMode)) {
212+
if (isBasic(currentMode) == false) {
213213
return new String[] { "Logstash will no longer poll for centrally-managed pipelines" };
214214
}
215215
break;
@@ -220,7 +220,7 @@ private static String[] logstashAcknowledgementMessages(OperationMode currentMod
220220
private static String[] beatsAcknowledgementMessages(OperationMode currentMode, OperationMode newMode) {
221221
switch (newMode) {
222222
case BASIC:
223-
if (!isBasic(currentMode)) {
223+
if (isBasic(currentMode) == false) {
224224
return new String[] { "Beats will no longer poll for centrally-managed configuration" };
225225
}
226226
break;
@@ -515,7 +515,7 @@ public boolean isRollupAllowed() {
515515
*/
516516
public boolean isLogstashAllowed() {
517517
Status localStatus = status;
518-
return localStatus.active && !isBasic(localStatus.mode);
518+
return localStatus.active && (isBasic(localStatus.mode) == false);
519519
}
520520

521521
/**
@@ -524,7 +524,7 @@ public boolean isLogstashAllowed() {
524524
*/
525525
public boolean isBeatsAllowed() {
526526
Status localStatus = status;
527-
return localStatus.active && !isBasic(localStatus.mode);
527+
return localStatus.active && (isBasic(localStatus.mode) == false);
528528

529529
}
530530

0 commit comments

Comments
 (0)