Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/android/ProxySettings.java

Issue 6002714978811904: Line endings, whitespace, imports and casts cleanup (Closed)
Patch Set: Created March 31, 2014, 1:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/org/adblockplus/android/ProxyService.java ('k') | src/org/adblockplus/android/Subscription.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/android/ProxySettings.java
diff --git a/src/org/adblockplus/android/ProxySettings.java b/src/org/adblockplus/android/ProxySettings.java
index afcbbb35254c32abb7cd828ec145d8adf2beda62..6a09ac599eef37cd494af533652b83f24d6312c2 100644
--- a/src/org/adblockplus/android/ProxySettings.java
+++ b/src/org/adblockplus/android/ProxySettings.java
@@ -46,7 +46,7 @@ public class ProxySettings
/**
* Reads proxy settings from link properties on Android 3.1+ using Java
* reflection.
- *
+ *
* @param linkProperties
* android.net.LinkProperties
* @return ProxyProperties
@@ -64,7 +64,7 @@ public class ProxySettings
/**
* Reads system proxy settings on Android 3.1+ using Java reflection.
- *
+ *
* @return string array of host, port and exclusion list
*/
public static String[] getUserProxy(Context context)
@@ -108,7 +108,7 @@ public class ProxySettings
/**
* Reads system proxy settings on Android 3.1+ using Java reflection.
- *
+ *
* @param pp
* ProxyProperties object
* @return string array of host, port and exclusion list
@@ -132,7 +132,7 @@ public class ProxySettings
* int proxyPort = pp.getPort();
*/
method = c.getMethod("getPort");
- userProxy[1] = String.valueOf((Integer) method.invoke(pp));
+ userProxy[1] = String.valueOf(method.invoke(pp));
/*
* String proxyEL = pp.getExclusionList()
@@ -149,7 +149,7 @@ public class ProxySettings
/**
* Tries to set local proxy in system settings via native call on Android 3.1+
* devices using Java reflection.
- *
+ *
* @return true if device supports native proxy setting
*/
public static boolean setConnectionProxy(Context context, String host, int port, String excl)
« no previous file with comments | « src/org/adblockplus/android/ProxyService.java ('k') | src/org/adblockplus/android/Subscription.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld