Commit a97c4bcd authored by Costin Grigoras's avatar Costin Grigoras
Browse files

SpotBugs: check again if the condition is met

parent 367947f3
......@@ -25,7 +25,7 @@ public class FileDownloadController extends Thread {
private final HashMap<LFN, LinkedList<FileDownloadApplication>> lfnRequested;
// private Set<LFN> lfnQueueInProcess;
private BlockingQueue<LFN> lfnToServe;
private final BlockingQueue<LFN> lfnToServe;
private static String cacheFolder;
private final int maxDownloaderSleep = 10000;
......@@ -104,7 +104,7 @@ public class FileDownloadController extends Thread {
System.out.println("Could not download " + l.getCanonicalName() + " to " + dstFilename + ", due to:\n" + errorMessage);
return null;
}
// return f.getName();
return dstFilename;
}
......@@ -207,7 +207,7 @@ public class FileDownloadController extends Thread {
private static void notifyCompletedFDA(final FileDownloadApplication fda) {
synchronized (fda) {
fda.notify();
fda.notifyAll();
}
}
......
......@@ -50,7 +50,7 @@ import apmon.ApMon;
* @author psvirin
*/
public class JobDownloader extends Thread {
private TitanJobStatus js;
private final TitanJobStatus js;
private String dbname;
private JDL jdl;
private Long queueId;
......@@ -607,7 +607,8 @@ public class JobDownloader extends Thread {
try {
synchronized (fda) {
fda.wait();
while (!fda.isCompleted())
fda.wait(1000 * 10);
}
}
catch (@SuppressWarnings("unused") final InterruptedException e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment