-
Notifications
You must be signed in to change notification settings - Fork 74
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
Make workflow-api compatible with Guava 21.0 and newer #135
Conversation
src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/graphanalysis/ForkScanner.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
Outdated
Show resolved
Hide resolved
@@ -194,7 +198,7 @@ public void onFailure(Throwable t) { | |||
LOGGER.log(WARNING, "Failed to load " + e, t); | |||
} | |||
} | |||
}); | |||
}, newExecutorService()); |
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.
Not sure I get it. The original code was not specifying an executor service, so why do we need to add this code now?
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.
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.
src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionList.java
Outdated
Show resolved
Hide resolved
@@ -194,7 +198,7 @@ public void onFailure(Throwable t) { | |||
LOGGER.log(WARNING, "Failed to load " + e, t); | |||
} | |||
} | |||
}); | |||
}, newExecutorService()); |
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.
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.
Alternatively I think you could take the MoreExecutors
and DirectExecutor
classes from jenkinsci/workflow-support-plugin#117 and then pass MoreExecutors.directExecutor()
without having to use reflection here.
release please? ❤️ |
No description provided.