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

Side by Side Diff: mojo/public/java/bindings/src/org/chromium/mojo/bindings/Interface.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.mojo.bindings; 5 package org.chromium.mojo.bindings;
6 6
7 import org.chromium.mojo.bindings.Callbacks.Callback1; 7 import org.chromium.mojo.bindings.Callbacks.Callback1;
8 import org.chromium.mojo.bindings.Interface.AbstractProxy.HandlerImpl; 8 import org.chromium.mojo.bindings.Interface.AbstractProxy.HandlerImpl;
9 import org.chromium.mojo.bindings.interfacecontrol.QueryVersion; 9 import org.chromium.mojo.bindings.interfacecontrol.QueryVersion;
10 import org.chromium.mojo.bindings.interfacecontrol.RequireVersion; 10 import org.chromium.mojo.bindings.interfacecontrol.RequireVersion;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 /** 101 /**
102 * The {@link MessageReceiverWithResponder} that will receive a seri alized message for 102 * The {@link MessageReceiverWithResponder} that will receive a seri alized message for
103 * each method call. 103 * each method call.
104 */ 104 */
105 private final MessageReceiverWithResponder mMessageReceiver; 105 private final MessageReceiverWithResponder mMessageReceiver;
106 106
107 /** 107 /**
108 * The {@link ConnectionErrorHandler} that will be notified of error s. 108 * The {@link ConnectionErrorHandler} that will be notified of error s.
109 */ 109 */
110 private ConnectionErrorHandler mErrorHandler = null; 110 private ConnectionErrorHandler mErrorHandler;
111 111
112 /** 112 /**
113 * The currently known version of the interface. 113 * The currently known version of the interface.
114 */ 114 */
115 private int mVersion = 0; 115 private int mVersion;
116 116
117 /** 117 /**
118 * Constructor. 118 * Constructor.
119 * 119 *
120 * @param core the Core implementation used to create pipes and acce ss the async waiter. 120 * @param core the Core implementation used to create pipes and acce ss the async waiter.
121 * @param messageReceiver the message receiver to send message to. 121 * @param messageReceiver the message receiver to send message to.
122 */ 122 */
123 protected HandlerImpl(Core core, MessageReceiverWithResponder messag eReceiver) { 123 protected HandlerImpl(Core core, MessageReceiverWithResponder messag eReceiver) {
124 this.mCore = core; 124 this.mCore = core;
125 this.mMessageReceiver = messageReceiver; 125 this.mMessageReceiver = messageReceiver;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 */ 410 */
411 protected abstract Stub<I> buildStub(Core core, I impl); 411 protected abstract Stub<I> buildStub(Core core, I impl);
412 412
413 /** 413 /**
414 * Constructs a Proxy forwarding the calls to the given message receiver . 414 * Constructs a Proxy forwarding the calls to the given message receiver .
415 */ 415 */
416 protected abstract P buildProxy(Core core, MessageReceiverWithResponder messageReceiver); 416 protected abstract P buildProxy(Core core, MessageReceiverWithResponder messageReceiver);
417 417
418 } 418 }
419 } 419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698