Lint
This commit is contained in:
@ -31,7 +31,7 @@ public class I2PAndroidHelper {
|
|||||||
|
|
||||||
private static final String LOG_TAG = "I2PClientLib";
|
private static final String LOG_TAG = "I2PClientLib";
|
||||||
|
|
||||||
private Context mContext;
|
private final Context mContext;
|
||||||
private boolean mTriedBindState;
|
private boolean mTriedBindState;
|
||||||
private IRouterState mStateService;
|
private IRouterState mStateService;
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ public class I2PAndroidHelper {
|
|||||||
mTriedBindState = false;
|
mTriedBindState = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ServiceConnection mStateConnection = new ServiceConnection() {
|
private final ServiceConnection mStateConnection = new ServiceConnection() {
|
||||||
public void onServiceConnected(ComponentName className,
|
public void onServiceConnected(ComponentName className,
|
||||||
IBinder service) {
|
IBinder service) {
|
||||||
mStateService = IRouterState.Stub.asInterface(service);
|
mStateService = IRouterState.Stub.asInterface(service);
|
||||||
|
@ -21,6 +21,7 @@ class LogWriter extends LogWriterBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void writeRecord(LogRecord rec, String s) {
|
protected void writeRecord(LogRecord rec, String s) {
|
||||||
|
//noinspection ThrowableResultOfMethodCallIgnored
|
||||||
if (rec.getThrowable() == null)
|
if (rec.getThrowable() == null)
|
||||||
log(rec.getPriority(), rec.getSource(), rec.getSourceName(), rec.getThreadName(), rec.getMessage());
|
log(rec.getPriority(), rec.getSource(), rec.getSourceName(), rec.getThreadName(), rec.getMessage());
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user