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

Side by Side Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/EngineService.java

Issue 29436555: Issue 5231 - Use Java 7 features (Closed)
Patch Set: Created May 11, 2017, 6:30 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
(...skipping 15 matching lines...) Expand all
26 import android.util.Log; 26 import android.util.Log;
27 27
28 public final class EngineService extends Service 28 public final class EngineService extends Service
29 { 29 {
30 private static final String TAG = EngineService.class.getSimpleName(); 30 private static final String TAG = EngineService.class.getSimpleName();
31 31
32 private volatile Engine engine = null; 32 private volatile Engine engine = null;
33 private volatile boolean isInitialized = false; 33 private volatile boolean isInitialized = false;
34 private Throwable failureCause = null; 34 private Throwable failureCause = null;
35 private static final LinkedBlockingQueue<EngineCreatedCallbackWrapper> ON_CREA TED_CALLBACKS = 35 private static final LinkedBlockingQueue<EngineCreatedCallbackWrapper> ON_CREA TED_CALLBACKS =
36 new LinkedBlockingQueue<EngineCreatedCallbackWrapper>(); 36 new LinkedBlockingQueue<>();
37 37
38 @Override 38 @Override
39 public int onStartCommand(Intent intent, int flags, int startId) 39 public int onStartCommand(Intent intent, int flags, int startId)
40 { 40 {
41 return Service.START_STICKY; 41 return Service.START_STICKY;
42 } 42 }
43 43
44 /** 44 /**
45 * The callback gets executed on the UI thread. 45 * The callback gets executed on the UI thread.
46 * 46 *
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 final boolean runOnUiThread; 180 final boolean runOnUiThread;
181 181
182 public EngineCreatedCallbackWrapper(final OnEngineCreatedCallback callback, 182 public EngineCreatedCallbackWrapper(final OnEngineCreatedCallback callback,
183 final boolean runOnUiThread) 183 final boolean runOnUiThread)
184 { 184 {
185 this.callback = callback; 185 this.callback = callback;
186 this.runOnUiThread = runOnUiThread; 186 this.runOnUiThread = runOnUiThread;
187 } 187 }
188 } 188 }
189 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld