diff options
author | Xavier Ducrohet <xav@android.com> | 2009-07-22 14:08:07 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2009-07-22 14:08:07 -0700 |
commit | 03332857f67977d788a3a147e7c3711ff65803bd (patch) | |
tree | 84e3715c80e1473953e8ee8b46e4a25e8e13bfd4 /sdkmanager/app/src | |
parent | c49aefc64c23d013479b56947f019252c924e380 (diff) | |
download | sdk-03332857f67977d788a3a147e7c3711ff65803bd.zip sdk-03332857f67977d788a3a147e7c3711ff65803bd.tar.gz sdk-03332857f67977d788a3a147e7c3711ff65803bd.tar.bz2 |
Fix erroneous assert.
Diffstat (limited to 'sdkmanager/app/src')
-rw-r--r-- | sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java | 2 |
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; |