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

Side by Side Diff: src/org/adblockplus/android/AdblockPlus.java

Issue 29348632: Issue 4260 - Replace Apache Commons Lang classes (Closed)
Patch Set: Created July 22, 2016, 5:58 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 package org.adblockplus.android; 18 package org.adblockplus.android;
19 19
20 import java.io.File; 20 import java.io.File;
21 import java.io.FileNotFoundException; 21 import java.io.FileNotFoundException;
22 import java.io.IOException; 22 import java.io.IOException;
23 import java.io.InputStreamReader; 23 import java.io.InputStreamReader;
24 import java.util.List; 24 import java.util.List;
25 import java.util.regex.Pattern; 25 import java.util.regex.Pattern;
26 26
27 import org.adblockplus.libadblockplus.FilterEngine.ContentType; 27 import org.adblockplus.libadblockplus.FilterEngine.ContentType;
28 import org.apache.commons.lang.StringUtils; 28 import org.adblockplus.android.StringUtils;
29 29
30 import android.app.ActivityManager; 30 import android.app.ActivityManager;
31 import android.app.ActivityManager.RunningServiceInfo; 31 import android.app.ActivityManager.RunningServiceInfo;
32 import android.app.Application; 32 import android.app.Application;
33 import android.content.Context; 33 import android.content.Context;
34 import android.content.Intent; 34 import android.content.Intent;
35 import android.content.SharedPreferences; 35 import android.content.SharedPreferences;
36 import android.content.SharedPreferences.Editor; 36 import android.content.SharedPreferences.Editor;
37 import android.content.pm.PackageInfo; 37 import android.content.pm.PackageInfo;
38 import android.content.pm.PackageManager; 38 import android.content.pm.PackageManager;
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 } 448 }
449 catch (final IOException e) 449 catch (final IOException e)
450 { 450 {
451 Log.e(TAG, e.getMessage(), e); 451 Log.e(TAG, e.getMessage(), e);
452 } 452 }
453 453
454 // Set crash handler 454 // Set crash handler
455 Thread.setDefaultUncaughtExceptionHandler(new CrashHandler(this)); 455 Thread.setDefaultUncaughtExceptionHandler(new CrashHandler(this));
456 } 456 }
457 } 457 }
OLDNEW

Powered by Google App Engine
This is Rietveld