rzo1 commented on code in PR #2521:
URL: https://github.com/apache/tomee/pull/2521#discussion_r2853746157
##########
server/openejb-client/src/main/java/org/apache/openejb/client/MulticastPulseClient.java:
##########
@@ -677,73 +671,69 @@ public static void main(final String[] args) throws
Exception {
final AtomicBoolean running = new AtomicBoolean(true);
- final Thread t = new Thread(new Runnable() {
- @SuppressWarnings("UseOfSystemOutOrSystemErr")
- @Override
- public void run() {
- while (running.get()) {
+ final Thread t = new Thread(() -> {
+ while (running.get()) {
- Set<URI> uriSet = null;
- try {
- uriSet = MulticastPulseClient.discoverURIs(discover,
new HashSet<String>(Arrays.asList("ejbd", "ejbds", "http", "https")), mchost,
mcport, timeout);
- } catch (Exception e) {
- System.err.println(e.getMessage());
- }
+ Set<URI> uriSet = null;
+ try {
+ uriSet = MulticastPulseClient.discoverURIs(discover, new
HashSet<String>(Arrays.asList("ejbd", "ejbds", "http", "https")), mchost,
mcport, timeout);
+ } catch (Exception e) {
+ System.err.println(e.getMessage());
+ }
- final int size = uriSet.size();
- if (uriSet != null && size > 0) {
+ final int size = uriSet.size();
+ if (uriSet != null && size > 0) {
Review Comment:
@rzo1 check sep.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]