diff --git a/source/de/anomic/http/server/HTTPDFileHandler.java b/source/de/anomic/http/server/HTTPDFileHandler.java index 68782c458..88327025b 100644 --- a/source/de/anomic/http/server/HTTPDFileHandler.java +++ b/source/de/anomic/http/server/HTTPDFileHandler.java @@ -1284,13 +1284,7 @@ public final class HTTPDFileHandler { requestHeader.put(HeaderFramework.HOST, proxyurl.getHost()); ByteArrayOutputStream o = new ByteArrayOutputStream(); - HTTPDProxyHandler.doGet(prop, requestHeader, o); - //System.err.println(prop.getProperty(HeaderFramework.CONNECTION_PROP_PROXY_RESPOND_STATUS)); - if (o == null) { - HTTPDemon.sendRespondError(conProp,out,3,404,"File not Found",null,null); - return; - } // reparse header to extract content-length and mimetype final ResponseHeader outgoingHeader = new ResponseHeader(); diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java index b07bda6a2..413e695be 100644 --- a/source/de/anomic/yacy/yacySeedDB.java +++ b/source/de/anomic/yacy/yacySeedDB.java @@ -1011,8 +1011,7 @@ public final class yacySeedDB implements AlternativeDomainNames { return (nextSeed != null); } - @SuppressWarnings("unchecked") - private yacySeed internalNext() { + private yacySeed internalNext() { if (it == null || !(it.hasNext())) return null; try { Map dna0; diff --git a/source/net/yacy/cora/storage/OrderedScoreMap.java b/source/net/yacy/cora/storage/OrderedScoreMap.java index f178cb1cf..61ccce30b 100644 --- a/source/net/yacy/cora/storage/OrderedScoreMap.java +++ b/source/net/yacy/cora/storage/OrderedScoreMap.java @@ -185,8 +185,7 @@ public class OrderedScoreMap implements ScoreMap { return score.intValue(); } - @SuppressWarnings("unchecked") - public SortedMap tailMap(E obj) { + public SortedMap tailMap(E obj) { if (this.map instanceof TreeMap) { return ((TreeMap) this.map).tailMap(obj); } @@ -248,8 +247,7 @@ public class OrderedScoreMap implements ScoreMap { return map.toString(); } - @SuppressWarnings("unchecked") - public Iterator keys(boolean up) { + public Iterator keys(boolean up) { synchronized (this) { // re-organize entries TreeMap> m = new TreeMap>(); diff --git a/source/net/yacy/document/parser/pdfParser.java b/source/net/yacy/document/parser/pdfParser.java index 858c45f93..170aee55d 100644 --- a/source/net/yacy/document/parser/pdfParser.java +++ b/source/net/yacy/document/parser/pdfParser.java @@ -77,7 +77,6 @@ public class pdfParser extends AbstractParser implements Parser { //pdfParser.parse(); //pdfDoc = pdfParser.getPDDocument(); } catch (IOException e) { - if (pdfDoc != null) try {pdfDoc.close();} catch (IOException ee) {} throw new Parser.Failure(e.getMessage(), location); } finally { Thread.currentThread().setPriority(Thread.NORM_PRIORITY); diff --git a/source/net/yacy/kelondro/data/image/ImageReferenceRow.java b/source/net/yacy/kelondro/data/image/ImageReferenceRow.java index 5a1c200ab..500dbb23f 100644 --- a/source/net/yacy/kelondro/data/image/ImageReferenceRow.java +++ b/source/net/yacy/kelondro/data/image/ImageReferenceRow.java @@ -91,8 +91,8 @@ public final class ImageReferenceRow extends AbstractReference implements /*Imag private static final int col_urlComps = 11; // n 1 number of path components // dynamic properties - private static final int col_rgbaverage = 12; // g 6 an average of the RGB values - private static final int col_typeofimage = 12; // g 4 classification + //private static final int col_rgbaverage = 12; // g 6 an average of the RGB values + //private static final int col_typeofimage = 12; // g 4 classification private static final int col_flags = 13; // z 4 b64-encoded appearance flags (24 bit, see definition below) private static final int col_hitcount = 14; // c 1 number of occurrences of this word in text private static final int col_posintext = 15; // t 2 first appearance of word in text diff --git a/source/net/yacy/kelondro/rwi/IODispatcher.java b/source/net/yacy/kelondro/rwi/IODispatcher.java index b99ce3142..a4e54cc2b 100644 --- a/source/net/yacy/kelondro/rwi/IODispatcher.java +++ b/source/net/yacy/kelondro/rwi/IODispatcher.java @@ -85,6 +85,7 @@ public class IODispatcher extends Thread { Log.logWarning("IODispatcher", "emergency dump of file " + file.getName()); if (!cache.isEmpty()) cache.dump(file, (int) Math.min(MemoryControl.available() / 3, writeBufferSize), true); } else { + @SuppressWarnings("rawtypes") DumpJob job = new DumpJob(cache, file, array); try { // check if the dispatcher is running @@ -214,7 +215,7 @@ public class IODispatcher extends Thread { } } - private class DumpJob { + private class DumpJob { private ReferenceContainerCache cache; private File file; private ReferenceContainerArray array; diff --git a/source/net/yacy/kelondro/util/FileUtils.java b/source/net/yacy/kelondro/util/FileUtils.java index 23bd04c98..295aa02c9 100644 --- a/source/net/yacy/kelondro/util/FileUtils.java +++ b/source/net/yacy/kelondro/util/FileUtils.java @@ -814,8 +814,7 @@ public final class FileUtils { } } - @SuppressWarnings("unchecked") - public static final File createTempFile(Class classObj, final String name) throws IOException { + public static final File createTempFile(Class classObj, final String name) throws IOException { String parserClassName = classObj.getName(); int idx = parserClassName.lastIndexOf('.'); if (idx != -1) {