Skip to content

Commit 8d6d506

Browse files
committed
Fix ConstantName
1 parent 824b227 commit 8d6d506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heron/common/src/java/org/apache/heron/common/network/HeronClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*/
5959
public abstract class HeronClient implements ISelectHandler {
6060
private static final Logger LOG = Logger.getLogger(HeronClient.class.getName());
61-
private static final Object dummy = new Object();
61+
private static final Object DUMMY = new Object();
6262

6363
// When we send a request, we need to:
6464
// record the the context for this particular RID, and prepare the response for that RID
@@ -195,7 +195,7 @@ public void sendRequest(Message request, Object context, Message.Builder respons
195195
Duration timeout) {
196196
// Pack it as a no-timeout request and send it!
197197
final REQID rid = REQID.generate();
198-
contextMap.put(rid, Objects.nonNull(context) ? context : dummy); // Fix NPE
198+
contextMap.put(rid, Objects.nonNull(context) ? context : DUMMY); // Fix NPE
199199
responseMessageMap.put(rid, responseBuilder);
200200

201201
// Add timeout for this request if necessary

0 commit comments

Comments
 (0)