-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Support adding service endpoint after construction #1274
Feature: Support adding service endpoint after construction #1274
Conversation
for this discussion |
@scottf any comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix all formatting not part of code change.
private static final String INTEGER_RE = "(-?\\d+)"; | ||
private static final String STRING_RE = "\"(.+?)\""; | ||
private static final String BOOLEAN_RE = "(true|false)"; | ||
private static final String INTEGER_RE = "(-?\\d+)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way you can make functional changes without changing the formatting. This makes unnecessary changes to the code that require review, and it's changes the formatting that have been in place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok - reverting the format change by intellij autoformat.
sb.append("\n}"); | ||
return sb.toString().replaceAll(",", ",\n "); | ||
} | ||
|
||
/** | ||
* Appends a json field to a string builder. | ||
* @param sb string builder | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a non-essential change also and there are many of these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k
@@ -461,30 +497,25 @@ public static String getFormatted(Object o) { | |||
indent = indent(++level); | |||
indentNext = true; | |||
lastWasClose = false; | |||
} | |||
else if (c == '}') { | |||
} else if (c == '}') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not. I prefer else on it's own line. It's everywhere in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k
? dispatcher.subscribe(se.getSubject(), this::onMessage) | ||
: dispatcher.subscribe(se.getSubject(), qGroup, this::onMessage); | ||
started = DateTimeUtils.gmtNow(); | ||
if (null == sub) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change to sub == null to be consistent with everywhere else in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k
thanks @scottf, i hope all concerns have been addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting response from CLI developer before proceeding
@rexf The CLI developer suggested to change the Java client since the CLI is already out in the wild. I'll finish the review soon. |
@scottf done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
47466e7
to
56edd32
Compare
@scottf all commit signed. thanks for the help. |
update_service_to_support_adding_endpoint_after_construction