Skip to content

Commit

Permalink
Merge pull request #761 from basil/javax
Browse files Browse the repository at this point in the history
Avoid `javax` imports in Groovy views
  • Loading branch information
jglick authored Aug 16, 2023
2 parents b77c00a + 1816c5d commit 04158d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ package org.jenkinsci.plugins.workflow.cps.Snippetizer
import org.jenkinsci.plugins.workflow.cps.GlobalVariable
import org.jenkinsci.plugins.workflow.cps.Snippetizer

import javax.servlet.RequestDispatcher

Snippetizer snippetizer = my;

def l = namespace(lib.LayoutTagLib)
Expand All @@ -32,7 +30,7 @@ l.layout(title:_("Pipeline Syntax: Global Variable Reference"), norefresh: true)
}
}
dd{
RequestDispatcher rd = request.getView(v, "help");
def rd = request.getView(v, "help");
div(class:"help", style:"display: block") {
if (rd != null) {
st.include(page: "help", it: v)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import org.jenkinsci.plugins.workflow.cps.GlobalVariable
import org.jenkinsci.plugins.workflow.cps.Snippetizer
import org.jenkinsci.plugins.workflow.steps.StepDescriptor

import javax.servlet.RequestDispatcher

// keeps track of recursion inside generateHelp
stack = new Stack();

Expand Down

0 comments on commit 04158d8

Please sign in to comment.