aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/app
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-08-21 11:05:06 -0700
committerTor Norbye <tnorbye@google.com>2012-08-21 11:05:06 -0700
commit09407f74000f057774f85cfd414e86909022eca0 (patch)
treefc057bfad9e08910194a815f78f6417577d3934d /sdkmanager/app
parentb008083756f23c40e7d3a8378afd0e2c5c27bf95 (diff)
downloadsdk-09407f74000f057774f85cfd414e86909022eca0.zip
sdk-09407f74000f057774f85cfd414e86909022eca0.tar.gz
sdk-09407f74000f057774f85cfd414e86909022eca0.tar.bz2
Fix nullability annotations
Eclipse 3.8/4.2 requires that any method which overrides another method with a @NonNull parameter (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=381443). This changeset adds @NonNull on various overriding methods in newly added code such that Eclispe 4.2 doesn't show errors. Change-Id: Ice4a4b4dc31ba68c4e0911bb37c15da090076a0d
Diffstat (limited to 'sdkmanager/app')
-rw-r--r--sdkmanager/app/src/com/android/sdkmanager/Main.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/sdkmanager/app/src/com/android/sdkmanager/Main.java b/sdkmanager/app/src/com/android/sdkmanager/Main.java
index 91d544f..3b2afc8 100644
--- a/sdkmanager/app/src/com/android/sdkmanager/Main.java
+++ b/sdkmanager/app/src/com/android/sdkmanager/Main.java
@@ -17,6 +17,7 @@
package com.android.sdkmanager;
import com.android.SdkConstants;
+import com.android.annotations.NonNull;
import com.android.annotations.VisibleForTesting;
import com.android.annotations.VisibleForTesting.Visibility;
import com.android.io.FileWrapper;
@@ -139,7 +140,7 @@ public class Main {
}
@Override
- public void warning(String warningFormat, Object... args) {
+ public void warning(@NonNull String warningFormat, Object... args) {
if (mSdkCommandLine.isVerbose()) {
System.out.printf("Warning: " + warningFormat, args);
if (!warningFormat.endsWith("\n")) {
@@ -149,12 +150,12 @@ public class Main {
}
@Override
- public void info(String msgFormat, Object... args) {
+ public void info(@NonNull String msgFormat, Object... args) {
System.out.printf(msgFormat, args);
}
@Override
- public void verbose(String msgFormat, Object... args) {
+ public void verbose(@NonNull String msgFormat, Object... args) {
System.out.printf(msgFormat, args);
}
};