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

Unified Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MoreBlockingPreferenceCategory.java

Issue 29436555: Issue 5231 - Use Java 7 features (Closed)
Patch Set: Created May 11, 2017, 6:30 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
Index: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MoreBlockingPreferenceCategory.java
===================================================================
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MoreBlockingPreferenceCategory.java
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MoreBlockingPreferenceCategory.java
@@ -52,17 +52,17 @@ public class MoreBlockingPreferenceCateg
private static final String[] WHITELISTED_LIST_URLS =
{
"https://easylist-downloads.adblockplus.org/easyprivacy.txt",
"https://easylist-downloads.adblockplus.org/malwaredomains_full.txt",
"https://easylist-downloads.adblockplus.org/antiadblockfilters.txt",
"https://easylist-downloads.adblockplus.org/fanboy-social.txt"
};
- private static final HashMap<String, Integer> URL_TO_RES_ID_MAP = new HashMap<String, Integer>();
+ private static final HashMap<String, Integer> URL_TO_RES_ID_MAP = new HashMap<>();
static
{
for (int i = 0; i < WHITELISTED_LIST_TITLES.length; i++)
{
URL_TO_RES_ID_MAP.put(WHITELISTED_LIST_URLS[i], WHITELISTED_LIST_TITLES[i]);
}
}

Powered by Google App Engine
This is Rietveld