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

Unified Diff: src/org/adblockplus/sbrowser/contentblocker/engine/Subscription.java

Issue 29376835: Issue 4769 - Supporting adding whitelisted websites on ABP for Samsung Internet (Closed)
Patch Set: Removing some Java7 features and some code style adjustment Created March 9, 2017, 9:11 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: src/org/adblockplus/sbrowser/contentblocker/engine/Subscription.java
===================================================================
--- a/src/org/adblockplus/sbrowser/contentblocker/engine/Subscription.java
+++ b/src/org/adblockplus/sbrowser/contentblocker/engine/Subscription.java
@@ -384,17 +384,17 @@ final class Subscription
private static String createFilterHash(List<String> filters) throws IOException
{
try
{
final MessageDigest md5 = MessageDigest.getInstance("MD5");
Collections.sort(filters);
for (final String filter : filters)
{
- md5.update(filter.getBytes("UTF-8"));
+ md5.update(filter.getBytes(Engine.CHARSET_UTF_8));
}
return byteArrayToHexString(md5.digest());
}
catch (final NoSuchAlgorithmException e)
{
throw new IOException("MD5 is unavailable: " + e.getMessage(), e);
}
}

Powered by Google App Engine
This is Rietveld