1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* cleanup

This commit is contained in:
Reinhard Pointner 2015-11-16 07:47:33 +00:00
parent bddb28cd6d
commit 3af7e217a0
10 changed files with 8 additions and 7 deletions

View File

@ -15,7 +15,6 @@ import java.awt.event.WindowEvent;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;

View File

@ -9,8 +9,8 @@ import java.io.OutputStream;
import net.sf.sevenzipjbinding.ExtractAskMode;
import net.sf.sevenzipjbinding.ExtractOperationResult;
import net.sf.sevenzipjbinding.IArchiveExtractCallback;
import net.sf.sevenzipjbinding.ISequentialOutStream;
import net.sf.sevenzipjbinding.IInArchive;
import net.sf.sevenzipjbinding.ISequentialOutStream;
import net.sf.sevenzipjbinding.PropID;
import net.sf.sevenzipjbinding.SevenZipException;

View File

@ -3,7 +3,6 @@ package net.filebot.format;
import groovy.lang.Closure;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;

View File

@ -54,6 +54,7 @@ public class MacAppUtilities {
// WARNING: dispatch_sync seems to work on most Mac always causes a deadlock and freezes the application on others (in particular MBP with 2 graphics chips)
dispatch_async(new Runnable() {
@Override
public void run() {
Pointer pool = createAutoreleasePool();
Proxy peer = objc().sendProxy("NSOpenPanel", "openPanel");

View File

@ -108,6 +108,7 @@ public class DateMatcher {
return new SimpleDate(Integer.parseInt(match.group(order[0])), Integer.parseInt(match.group(order[1])), Integer.parseInt(match.group(order[2])));
}
@Override
public SimpleDate match(CharSequence seq) {
Matcher matcher = pattern.matcher(seq);
@ -118,6 +119,7 @@ public class DateMatcher {
return null;
}
@Override
public int find(CharSequence seq, int fromIndex) {
Matcher matcher = pattern.matcher(seq).region(fromIndex, seq.length());
@ -146,6 +148,7 @@ public class DateMatcher {
return SimpleDate.parse(space.matcher(match.group()).replaceAll(" "), dateFormat);
}
@Override
public SimpleDate match(CharSequence seq) {
Matcher matcher = pattern.matcher(seq);
@ -156,6 +159,7 @@ public class DateMatcher {
return null;
}
@Override
public int find(CharSequence seq, int fromIndex) {
Matcher matcher = pattern.matcher(seq).region(fromIndex, seq.length());

View File

@ -6,7 +6,6 @@ import static net.filebot.util.ui.SwingUI.*;
import java.awt.event.ActionEvent;
import java.io.File;
import java.util.List;
import java.util.Locale;
import net.filebot.Language;
import net.filebot.Settings;

View File

@ -12,7 +12,6 @@ import java.awt.event.ActionEvent;
import java.io.File;
import java.util.EnumSet;
import java.util.List;
import java.util.Locale;
import java.util.logging.Level;
import javax.swing.AbstractAction;

View File

@ -52,7 +52,6 @@ import net.filebot.Language;
import net.filebot.ResourceManager;
import net.filebot.WebServices;
import net.filebot.media.MediaDetection;
import net.filebot.similarity.SeasonEpisodeMatcher;
import net.filebot.similarity.SeriesNameMatcher;
import net.filebot.ui.LanguageComboBox;
import net.filebot.ui.SelectDialog;

View File

@ -89,6 +89,7 @@ public class WeakValueHashMap<K, V> extends AbstractMap<K, V> {
return entries;
}
@Override
public Collection<V> values() {
processQueue();

View File

@ -148,7 +148,7 @@ public class ShooterSubtitles implements VideoHashSubtitleService {
}
/**
*
*
* @see https://docs.google.com/document/d/1w5MCBO61rKQ6hI5m9laJLWse__yTYdRugpVyz4RzrmM/preview
*/
protected static String computeFileHash(File file) throws IOException {