-
-
Notifications
You must be signed in to change notification settings - Fork 76
Migrate Commons Lang 2 to 3 using API plugins #174
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -33,8 +33,8 @@ | |||
| import jenkins.model.Jenkins; | ||||
| import net.sf.json.JSONArray; | ||||
| import net.sf.json.JSONObject; | ||||
| import org.apache.commons.lang.StringEscapeUtils; | ||||
| import org.apache.commons.lang.StringUtils; | ||||
| import org.apache.commons.lang3.StringUtils; | ||||
| import org.apache.commons.text.StringEscapeUtils; | ||||
| import org.jenkinsci.plugins.structs.describable.CustomDescribableModel; | ||||
| import org.jenkinsci.plugins.structs.describable.DescribableModel; | ||||
| import org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable; | ||||
|
|
@@ -305,7 +305,7 @@ | |||
| public String getContextEncoded() { | ||||
| final String context = getContext(); | ||||
| //Functions.jsStringEscape() is also an alternative though the one below escapes more stuff | ||||
| return context != null ? StringEscapeUtils.escapeJavaScript(context) : null; | ||||
| return context != null ? StringEscapeUtils.escapeEcmaScript(context) : null; | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 7 in bd0dab5
data-* attributes idiomatically, in which case we should not need either of these lib deps.
|
||||
| } | ||||
|
|
||||
| public FormValidation doCheckPropagate(@QueryParameter boolean value, @QueryParameter boolean wait) { | ||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |
| import java.util.Collections; | ||
| import java.util.HashSet; | ||
| import java.util.Set; | ||
| import org.apache.commons.lang.StringUtils; | ||
| import org.apache.commons.lang3.StringUtils; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An example of a completely gratuitous use of |
||
| import org.jenkinsci.plugins.workflow.graph.FlowNode; | ||
| import org.jenkinsci.plugins.workflow.steps.Step; | ||
| import org.jenkinsci.plugins.workflow.steps.StepContext; | ||
|
|
||
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.
prefer #176