Skip to content

Commit

Permalink
fix code that violates convention (apache#6624)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfzCarlosC authored Aug 26, 2020
1 parent e1fe4a6 commit 859c9ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public void destroy() {
}
}

List<Exporter<?>> exporters = new ArrayList<Exporter<?>>(bounds.values());
List<Exporter<?>> exporters = new ArrayList<>(bounds.values());
for (Exporter<?> exporter : exporters) {
exporter.unexport();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class RpcInvocation implements Invocation, Serializable {
/**
* Only used on the caller side, will not appear on the wire.
*/
private Map<Object, Object> attributes = new HashMap<Object, Object>();
private Map<Object, Object> attributes = new HashMap<>();

private transient Invoker<?> invoker;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ public static Object decodeInvocationArgument(Channel channel, RpcInvocation inv
}
return inObject;
}
byte callbackstatus = isCallBack(url, inv.getMethodName(), paraIndex);
switch (callbackstatus) {
byte callBackStatus = isCallBack(url, inv.getMethodName(), paraIndex);
switch (callBackStatus) {
case CallbackServiceCodec.CALLBACK_CREATE:
try {
return referOrDestroyCallbackService(channel, url, pts[paraIndex], inv, Integer.parseInt(inv.getAttachment(INV_ATT_CALLBACK_KEY + paraIndex)), true);
Expand Down

0 comments on commit 859c9ba

Please sign in to comment.