diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-02-18 16:03:14 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-02-18 16:03:14 +0100 |
commit | 723480c8a722eb0dfbaf56436b92040610285757 (patch) | |
tree | 957cdb69e4f571b360e06870273f5769e02a5204 | |
parent | bf3d759cb2070bd491bf65ce66252a29a6d3f756 (diff) |
suprress warnings
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java | 3 | ||||
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java b/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java index 8e1873ea..cd57b397 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java +++ b/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java @@ -313,7 +313,8 @@ public class ConfigParser { // This method is far too long - public VpnProfile convertProfile() throws ConfigParseError{ + @SuppressWarnings("ConstantConditions") + public VpnProfile convertProfile() throws ConfigParseError{ boolean noauthtypeset=true; VpnProfile np = new VpnProfile(CONVERTED_PROFILE); // Pull, client, tls-client diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java b/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java index 61fcb581..a43bbbe8 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java @@ -225,7 +225,7 @@ public class AboutFragment extends Fragment implements View.OnClickListener { if (buyBundle.getInt(RESPONSE_CODE) == BILLING_RESPONSE_RESULT_OK) { - PendingIntent buyIntent = (PendingIntent) buyBundle.getParcelable(RESPONSE_BUY_INTENT); + PendingIntent buyIntent = buyBundle.getParcelable(RESPONSE_BUY_INTENT); getActivity().startIntentSenderForResult(buyIntent.getIntentSender(), DONATION_CODE, new Intent(), 0, 0, 0); } |