aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/oc
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-09-13 18:32:36 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-09-13 18:32:36 +0200
commit5049488a85ed9785c7cc452f0fbc08a57c8241d5 (patch)
tree3d30ac4d0be0070abe1926c8943f84889fee9abb /main/src/cgeo/geocaching/connector/oc
parent6f159746cbffff44108a015fad80b78ddf2b5aad (diff)
downloadcgeo-5049488a85ed9785c7cc452f0fbc08a57c8241d5.zip
cgeo-5049488a85ed9785c7cc452f0fbc08a57c8241d5.tar.gz
cgeo-5049488a85ed9785c7cc452f0fbc08a57c8241d5.tar.bz2
refactoring: compile errors for missing nullable annotations
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc')
-rw-r--r--main/src/cgeo/geocaching/connector/oc/OCAuthorizationActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OCAuthorizationActivity.java b/main/src/cgeo/geocaching/connector/oc/OCAuthorizationActivity.java
index ec6bbf4..96875ce 100644
--- a/main/src/cgeo/geocaching/connector/oc/OCAuthorizationActivity.java
+++ b/main/src/cgeo/geocaching/connector/oc/OCAuthorizationActivity.java
@@ -6,6 +6,7 @@ import cgeo.geocaching.network.OAuthAuthorizationActivity;
import cgeo.geocaching.settings.Settings;
import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.eclipse.jdt.annotation.Nullable;
public class OCAuthorizationActivity extends OAuthAuthorizationActivity {
@@ -28,12 +29,12 @@ public class OCAuthorizationActivity extends OAuthAuthorizationActivity {
}
@Override
- protected void setTempTokens(String tokenPublic, String tokenSecret) {
+ protected void setTempTokens(@Nullable final String tokenPublic, @Nullable final String tokenSecret) {
Settings.setTokens(authParams.getTempTokenPublicPrefKey(), tokenPublic, authParams.getTempTokenSecretPrefKey(), tokenSecret);
}
@Override
- protected void setTokens(String tokenPublic, String tokenSecret, boolean enable) {
+ protected void setTokens(@Nullable final String tokenPublic, @Nullable final String tokenSecret, final boolean enable) {
Settings.setTokens(authParams.getTokenPublicPrefKey(), tokenPublic, authParams.getTokenSecretPrefKey(), tokenSecret);
if (tokenPublic != null) {
Settings.setTokens(authParams.getTempTokenPublicPrefKey(), null, authParams.getTempTokenSecretPrefKey(), null);