Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cdr-chakotay committed Sep 2, 2024
1 parent 76ac9af commit f8fc321
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/transloadit/sdk/Assembly.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ private void listenToServerSentEvents(AssemblyResponse response) throws LocalOpe
final URI sseUpdateStreamUrl = URI.create(response.getUpdateStreamUrl());
final ConnectStrategy connectStrategy = ConnectStrategy.http(sseUpdateStreamUrl).connectTimeout(10, TimeUnit.MINUTES);
final ErrorStrategy errorStrategy = ErrorStrategy.alwaysContinue();
final EventsourceRunnable eventsourceRunnable = new EventsourceRunnable(transloadit, response, assemblyListener, connectStrategy, errorStrategy);
final EventsourceRunnable eventsourceRunnable =
new EventsourceRunnable(transloadit, response, assemblyListener, connectStrategy, errorStrategy);

ExecutorService executor = Executors.newSingleThreadExecutor();
executor.execute(eventsourceRunnable);
Expand Down
11 changes: 7 additions & 4 deletions src/test/java/com/transloadit/sdk/AssemblyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;

import org.json.JSONStringer;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -18,7 +17,11 @@
import org.mockserver.model.HttpRequest;
import org.mockserver.model.HttpResponse;

import java.io.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.util.HashMap;
import java.util.Objects;
Expand All @@ -43,9 +46,9 @@ public class AssemblyTest extends MockHttpService {
private Assembly assembly;

/**
* Keeps track of events fired by the {@link AssemblyListener}
* Keeps track of events fired by the {@link AssemblyListener}.
*/
private HashMap<String, Boolean> emittedEvents = new HashMap<String, Boolean>() {{
private final HashMap<String, Boolean> emittedEvents = new HashMap<String, Boolean>() {{
put("ASSEMBLY_ERROR", false);
put("ASSEMBLY_META_DATA_EXTRACTED", false);
put("ASSEMBLY_INSTRUCTION_UPLOAD_FINISHED", false);
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/com/transloadit/sdk/MockTusAssembly.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.transloadit.sdk;

import io.socket.client.Socket;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
Expand Down

0 comments on commit f8fc321

Please sign in to comment.