Skip to content

Commit 4de2026

Browse files
committed
Fix TODO attribution
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=84172357
1 parent 080e33e commit 4de2026

27 files changed

Lines changed: 40 additions & 40 deletions

File tree

auth/src/main/java/com/google/net/stubby/auth/OAuth2ChannelInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public OAuth2ChannelInterceptor(Credential credential, Executor executor) {
6464
@Override
6565
public <ReqT, RespT> Call<ReqT, RespT> interceptCall(MethodDescriptor<ReqT, RespT> method,
6666
Channel next) {
67-
// TODO(user): If the call fails for Auth reasons, this does not properly propagate info that
67+
// TODO(ejona): If the call fails for Auth reasons, this does not properly propagate info that
6868
// would be in WWW-Authenticate, because it does not yet have access to the header.
6969
return new ForwardingCall<ReqT, RespT>(next.newCall(method)) {
7070
@Override

compiler/src/java_generator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static void PrintStub(const google::protobuf::ServiceDescriptor* service,
337337
p->Print("public ");
338338
switch (call_type) {
339339
case BLOCKING_CALL:
340-
// TODO(user): decide the blocking server interface
340+
// TODO(zhangkun): decide the blocking server interface
341341
CHECK(type != BLOCKING_SERVER_INTERFACE)
342342
<< "Blocking server interface is not available";
343343
CHECK(!client_streaming)

core/src/main/java/com/google/net/stubby/Call.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public abstract static class Listener<T> {
9494
* @param headers which can contain extra information like authentication.
9595
* @throws IllegalStateException if call is already started
9696
*/
97-
// TODO(user): Might be better to put into Channel#newCall, might reduce decoration burden
97+
// TODO(lryan): Might be better to put into Channel#newCall, might reduce decoration burden
9898
public abstract void start(Listener<ResponseT> responseListener, Metadata.Headers headers);
9999

100100
/**

core/src/main/java/com/google/net/stubby/Channel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ public interface Channel {
4444
/**
4545
* Create a call to the given service method.
4646
*/
47-
// TODO(user): perform start() as part of new Call creation?
47+
// TODO(ejona): perform start() as part of new Call creation?
4848
public <ReqT, RespT> Call<ReqT, RespT> newCall(MethodDescriptor<ReqT, RespT> method);
4949
}

core/src/main/java/com/google/net/stubby/ChannelImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public ChannelImpl(ClientTransportFactory transportFactory, ExecutorService exec
9494
}
9595

9696
/** Hack to allow executors to auto-shutdown. Not for general use. */
97-
// TODO(user): Replace with a real API.
97+
// TODO(ejona): Replace with a real API.
9898
void setTerminationRunnable(Runnable runnable) {
9999
this.terminationRunnable = runnable;
100100
}
@@ -125,7 +125,7 @@ public synchronized ChannelImpl shutdown() {
125125
*
126126
* <p>NOT YET IMPLEMENTED. This method currently behaves identically to shutdown().
127127
*/
128-
// TODO(user): cancel preexisting calls.
128+
// TODO(ejona): cancel preexisting calls.
129129
public synchronized ChannelImpl shutdownNow() {
130130
shutdown();
131131
return this;
@@ -263,7 +263,7 @@ public void start(Listener<RespT> observer, Metadata.Headers headers) {
263263
stream = transport.newStream(method, headers, listener);
264264
} catch (IllegalStateException ex) {
265265
// We can race with the transport and end up trying to use a terminated transport.
266-
// TODO(user): Improve the API to remove the possibility of the race.
266+
// TODO(ejona): Improve the API to remove the possibility of the race.
267267
stream = new NoopClientStream();
268268
listener.closed(Status.fromThrowable(ex), new Metadata.Trailers());
269269
return;

core/src/main/java/com/google/net/stubby/Marshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface Marshaller<T> {
4141
/**
4242
* Given a message produce an {@link InputStream} for it.
4343
*/
44-
// TODO(user): Switch to ByteSource equivalent when ready
44+
// TODO(lryan): Switch to ByteSource equivalent when ready
4545
public InputStream stream(T value);
4646

4747
/**

core/src/main/java/com/google/net/stubby/Metadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public Integer parseAsciiString(String serialized) {
104104
/**
105105
* Constructor called by the transport layer when it receives binary metadata.
106106
*/
107-
// TODO(user): Convert to use ByteString so we can cache transformations
107+
// TODO(lryan): Convert to use ByteString so we can cache transformations
108108
private Metadata(byte[]... binaryValues) {
109109
store = LinkedListMultimap.create();
110110
for (int i = 0; i < binaryValues.length; i++) {

core/src/main/java/com/google/net/stubby/SerializingExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* @author JJ Furman
5050
*/
5151

52-
// TODO(user): figure out a way to not expose it or move it to transport package.
52+
// TODO(simonma): figure out a way to not expose it or move it to transport package.
5353
public final class SerializingExecutor implements Executor {
5454
private static final Logger log =
5555
Logger.getLogger(SerializingExecutor.class.getName());

core/src/main/java/com/google/net/stubby/ServerCall.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public abstract class ServerCall<ResponseT> {
5959
* <p>Implementations are free to block for extended periods of time. Implementations are not
6060
* required to be thread-safe.
6161
*/
62-
// TODO(user): We need to decide what to do in the case of server closing with non-cancellation
62+
// TODO(ejona): We need to decide what to do in the case of server closing with non-cancellation
6363
// before client half closes. It may be that we treat such a case as an error. If we permit such
6464
// a case then we either get to generate a half close or purposefully omit it.
6565
public abstract static class Listener<RequestT> {

core/src/main/java/com/google/net/stubby/ServerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public void terminated(Service.State from) {
221221

222222
@Override
223223
public void failed(Service.State from, Throwable failure) {
224-
// TODO(user): Ideally we would want to force-stop transports before notifying application of
224+
// TODO(ejona): Ideally we would want to force-stop transports before notifying application of
225225
// failure, but that would cause us to have an unrepresentative state since we would be
226226
// RUNNING but not accepting connections.
227227
notifyFailed(failure);
@@ -285,7 +285,7 @@ public void run() {
285285
/** Never returns {@code null}. */
286286
private <ReqT, RespT> ServerStreamListener startCall(ServerStream stream, String fullMethodName,
287287
ServerMethodDefinition<ReqT, RespT> methodDef, Metadata.Headers headers) {
288-
// TODO(user): should we update fullMethodName to have the canonical path of the method?
288+
// TODO(ejona): should we update fullMethodName to have the canonical path of the method?
289289
final ServerCallImpl<ReqT, RespT> call = new ServerCallImpl<ReqT, RespT>(stream, methodDef);
290290
ServerCall.Listener<ReqT> listener
291291
= methodDef.getServerCallHandler().startCall(fullMethodName, call, headers);
@@ -344,7 +344,7 @@ private void setListener(ServerStreamListener listener) {
344344
* Like {@link ServerCall#close(Status, Metadata.Trailers)}, but thread-safe for internal use.
345345
*/
346346
private void internalClose(Status status, Metadata.Trailers trailers) {
347-
// TODO(user): this is not thread-safe :)
347+
// TODO(ejona): this is not thread-safe :)
348348
stream.close(status, trailers);
349349
}
350350

0 commit comments

Comments
 (0)