Skip to content

Commit effed5e

Browse files
mvn spotless apply
1 parent aec97b4 commit effed5e

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/main/java/com/cloudbees/jenkins/support/SupportAction.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
import net.sf.json.JSON;
7272
import net.sf.json.JSONObject;
7373
import org.apache.commons.io.FileUtils;
74-
import org.apache.commons.io.IOUtils;
7574
import org.jvnet.localizer.Localizable;
7675
import org.kohsuke.accmod.Restricted;
7776
import org.kohsuke.accmod.restrictions.NoExternalUse;
@@ -373,7 +372,8 @@ public HttpRedirect doGenerateBundleAsync(StaplerRequest2 req, StaplerResponse2
373372
throw new IOException("Failed to create directory: " + outputDir.toAbsolutePath(), e);
374373
}
375374
}
376-
try (FileOutputStream fileOutputStream = new FileOutputStream(new File(outputDir.toString(), SYNC_SUPPORT_BUNDLE))) {
375+
try (FileOutputStream fileOutputStream =
376+
new FileOutputStream(new File(outputDir.toString(), SYNC_SUPPORT_BUNDLE))) {
377377
SupportPlugin.setRequesterAuthentication(Jenkins.getAuthentication2());
378378
try {
379379
SupportPlugin.writeBundleForSyncComponents(fileOutputStream, syncComponent);
@@ -552,7 +552,8 @@ protected void compute() throws Exception {
552552
}
553553
}
554554

555-
try (FileOutputStream fileOutputStream = new FileOutputStream(new File(outputDir.toString(), supportBundleName))) {
555+
try (FileOutputStream fileOutputStream =
556+
new FileOutputStream(new File(outputDir.toString(), supportBundleName))) {
556557
SupportPlugin.setRequesterAuthentication(Jenkins.getAuthentication2());
557558
try {
558559
SupportPlugin.writeBundle(fileOutputStream, components, this::progress, outputDir);

src/main/java/com/cloudbees/jenkins/support/SupportPlugin.java

-5
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,8 @@ public <T extends Component> void visit(Container container, T component) {
379379
* @param components a list of synchronous {@link Component} to include in the bundle
380380
* @throws IOException if an error occurs while generating the bundle.
381381
*/
382-
<<<<<<< Updated upstream
383-
public static void writeBundleForSyncComponents(
384-
OutputStream outputStream, final List<? extends Component> components) throws IOException {
385-
=======
386382
static void writeBundleForSyncComponents(OutputStream outputStream, final List<? extends Component> components)
387383
throws IOException {
388-
>>>>>>> Stashed changes
389384
writeBundle(
390385
outputStream,
391386
components,

src/test/java/com/cloudbees/jenkins/support/SupportActionTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.nio.charset.StandardCharsets;
3535
import java.nio.file.Files;
3636
import java.nio.file.Path;
37-
import java.nio.file.Paths;
3837
import java.nio.file.StandardCopyOption;
3938
import java.util.ArrayList;
4039
import java.util.Arrays;

0 commit comments

Comments
 (0)