aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'sdkmanager/app/src')
-rw-r--r--sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java b/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java
index d4da21b..50fe5c6 100644
--- a/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java
+++ b/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java
@@ -766,7 +766,7 @@ public class CommandLineProcessor {
String directObject,
String shortName, String longName,
String description, Object defaultValue) {
- assert(mandatory || mode == Mode.BOOLEAN); // a boolean mode cannot be mandatory
+ assert(!(mandatory && mode == Mode.BOOLEAN)); // a boolean mode cannot be mandatory
if (directObject == null) {
directObject = NO_VERB_OBJECT;