Skip to content
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

JENKINS-37403 - downstream change to use SymbolLookup.getSymbolValue(…) #43

Merged
merged 3 commits into from Aug 26, 2016

Conversation

abayer
Copy link
Member

@abayer abayer commented Aug 15, 2016

JENKINS-37403

Downstream of jenkinsci/structs-plugin#10

cc @reviewbybees esp @jglick

@ghost
Copy link

ghost commented Aug 15, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

if (s != null) {
symbols.addAll(Arrays.asList(s.value()));
symbols.addAll(Arrays.asList(s));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐛 this removes support for multiple symbols.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Which is something you need to think about in the other downstream PRs. What is your behavior when there are multiple allowed symbols? Probably rather than @CheckForNull String you need to return @Nonnull Set<String>.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. Never thought about that! Reworking to come.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, hmm...might we actually want both? Not sure...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, I take that back. I'm overthinking. =)

if (s != null) {
symbols.addAll(Arrays.asList(s.value()));
Set<String> s = SymbolLookup.getSymbolValue(e);
if (!s.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really necessary; could just write

symbols.addAll(SymbolLookup.getSymbolValue(e));

@jglick
Copy link
Member

jglick commented Aug 15, 2016

🐝

@abayer abayer closed this Aug 15, 2016
@abayer abayer reopened this Aug 15, 2016
@jglick
Copy link
Member

jglick commented Aug 16, 2016

re:bee:

@abayer
Copy link
Member Author

abayer commented Aug 17, 2016

@reviewbybees done

@ghost
Copy link

ghost commented Aug 17, 2016

This pull request has completed our internal processes and we now respectfully request the maintainers of this repository to consider our proposal contained within this pull request for merging.

@abayer abayer merged commit db985aa into jenkinsci:master Aug 26, 2016
svanoort pushed a commit that referenced this pull request Sep 28, 2017
dwnusbaum pushed a commit to dwnusbaum/workflow-cps-plugin that referenced this pull request Jun 1, 2020
dwnusbaum pushed a commit to dwnusbaum/workflow-cps-plugin that referenced this pull request Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants