From 4ae4722e8419f5ffe27fabcde0198a02b4fa1b92 Mon Sep 17 00:00:00 2001 From: Nico Schmoigl Date: Sun, 10 Jun 2018 20:59:44 +0200 Subject: [PATCH] Reverting aesthetic adjustment of import statements --- .../plugins/docker/DockerTemplate.java | 40 +++++++++---------- .../plugins/docker/DockerTemplateBase.java | 39 +++++++++--------- 2 files changed, 38 insertions(+), 41 deletions(-) diff --git a/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplate.java b/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplate.java index 51cca88ef..321fcff5e 100644 --- a/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplate.java +++ b/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplate.java @@ -1,26 +1,5 @@ package com.nirima.jenkins.plugins.docker; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import javax.annotation.CheckForNull; -import javax.annotation.Nonnull; - -import org.apache.commons.lang.StringUtils; -import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint; -import org.kohsuke.accmod.Restricted; -import org.kohsuke.accmod.restrictions.NoExternalUse; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.DataBoundSetter; -import org.kohsuke.stapler.QueryParameter; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.api.command.CreateContainerCmd; import com.github.dockerjava.api.command.InspectImageResponse; @@ -55,6 +34,25 @@ import io.jenkins.docker.client.DockerAPI; import io.jenkins.docker.connector.DockerComputerConnector; import jenkins.model.Jenkins; +import org.apache.commons.lang.StringUtils; +import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint; +import org.kohsuke.accmod.Restricted; +import org.kohsuke.accmod.restrictions.NoExternalUse; +import org.kohsuke.stapler.DataBoundConstructor; +import org.kohsuke.stapler.DataBoundSetter; +import org.kohsuke.stapler.QueryParameter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import javax.annotation.CheckForNull; +import javax.annotation.Nonnull; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Set; public class DockerTemplate implements Describable { diff --git a/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplateBase.java b/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplateBase.java index 5a9b3dda4..643e1c119 100644 --- a/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplateBase.java +++ b/src/main/java/com/nirima/jenkins/plugins/docker/DockerTemplateBase.java @@ -1,25 +1,5 @@ package com.nirima.jenkins.plugins.docker; -import static org.apache.commons.lang.StringUtils.isEmpty; -import static org.apache.commons.lang.StringUtils.trimToNull; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.annotation.CheckForNull; -import javax.annotation.Nullable; - -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.lang.StringUtils; -import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint; -import org.kohsuke.stapler.AncestorInPath; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.DataBoundSetter; import org.kohsuke.stapler.QueryParameter; import com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator; @@ -52,7 +32,26 @@ import hudson.util.FormValidation; import hudson.util.ListBoxModel; import jenkins.model.Jenkins; +import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.lang.StringUtils; +import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint; +import org.kohsuke.stapler.AncestorInPath; +import org.kohsuke.stapler.DataBoundConstructor; +import org.kohsuke.stapler.DataBoundSetter; +import org.kohsuke.stapler.QueryParameter; +import javax.annotation.CheckForNull; +import javax.annotation.Nullable; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static org.apache.commons.lang.StringUtils.isEmpty; +import static org.apache.commons.lang.StringUtils.trimToNull; /** * Base for docker templates - does not include Jenkins items like labels. */