Loading src/main/java/ecorp/easy/installer/threads/ThreadFactory.java +3 −23 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ */ package ecorp.easy.installer.threads; import ecorp.easy.installer.AppConstants; import ecorp.easy.installer.models.Phone; import ecorp.easy.installer.models.Process; import java.security.InvalidParameterException; import java.util.Map; import java.util.Set; Loading @@ -34,17 +32,12 @@ import org.slf4j.LoggerFactory; */ public class ThreadFactory { private final static Logger logger = LoggerFactory.getLogger(ThreadFactory.class); private Process flashMould; private final HashMap<String, String> sourcesToDownload; private Phone device; private final String yamlFolderPath; /** * Constructor of the ThreadFactory object * @param yamlFolderPath */ public ThreadFactory(String yamlFolderPath){ this.yamlFolderPath = yamlFolderPath; public ThreadFactory(){ this.sourcesToDownload = new HashMap<>(); } Loading Loading @@ -74,17 +67,4 @@ public class ThreadFactory { return sourcesToDownload; } /** * get the number of steps inside the current ProcessMould * @return 0 if processMould is null */ public int getStepsCount(){ if(flashMould == null) return 0; return flashMould.getSteps().size(); } public Process getFlashMould() { return flashMould; } } No newline at end of file Loading
src/main/java/ecorp/easy/installer/threads/ThreadFactory.java +3 −23 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ */ package ecorp.easy.installer.threads; import ecorp.easy.installer.AppConstants; import ecorp.easy.installer.models.Phone; import ecorp.easy.installer.models.Process; import java.security.InvalidParameterException; import java.util.Map; import java.util.Set; Loading @@ -34,17 +32,12 @@ import org.slf4j.LoggerFactory; */ public class ThreadFactory { private final static Logger logger = LoggerFactory.getLogger(ThreadFactory.class); private Process flashMould; private final HashMap<String, String> sourcesToDownload; private Phone device; private final String yamlFolderPath; /** * Constructor of the ThreadFactory object * @param yamlFolderPath */ public ThreadFactory(String yamlFolderPath){ this.yamlFolderPath = yamlFolderPath; public ThreadFactory(){ this.sourcesToDownload = new HashMap<>(); } Loading Loading @@ -74,17 +67,4 @@ public class ThreadFactory { return sourcesToDownload; } /** * get the number of steps inside the current ProcessMould * @return 0 if processMould is null */ public int getStepsCount(){ if(flashMould == null) return 0; return flashMould.getSteps().size(); } public Process getFlashMould() { return flashMould; } } No newline at end of file