Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: net/test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticatorService.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net.test; 5 package org.chromium.net.test;
6 6
7 import android.app.Service; 7 import android.app.Service;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.os.IBinder; 9 import android.os.IBinder;
10 10
11 /** 11 /**
12 * Authenticator service for testing SPNEGO (Kerberos) support. 12 * Authenticator service for testing SPNEGO (Kerberos) support.
13 */ 13 */
14 public class DummySpnegoAuthenticatorService extends Service { 14 public class DummySpnegoAuthenticatorService extends Service {
15 private static DummySpnegoAuthenticator sAuthenticator = null; 15 private static DummySpnegoAuthenticator sAuthenticator;
16 16
17 @Override 17 @Override
18 public IBinder onBind(Intent arg0) { 18 public IBinder onBind(Intent arg0) {
19 if (sAuthenticator == null) sAuthenticator = new DummySpnegoAuthenticato r(this); 19 if (sAuthenticator == null) sAuthenticator = new DummySpnegoAuthenticato r(this);
20 return sAuthenticator.getIBinder(); 20 return sAuthenticator.getIBinder();
21 } 21 }
22 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698