removed more warnings

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7598 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 0324de1467
commit 1989ebc24b

@ -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();

@ -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<String, String> dna0;

@ -185,8 +185,7 @@ public class OrderedScoreMap<E> implements ScoreMap<E> {
return score.intValue();
}
@SuppressWarnings("unchecked")
public SortedMap<E, IntScore> tailMap(E obj) {
public SortedMap<E, IntScore> tailMap(E obj) {
if (this.map instanceof TreeMap) {
return ((TreeMap<E, IntScore>) this.map).tailMap(obj);
}
@ -248,8 +247,7 @@ public class OrderedScoreMap<E> implements ScoreMap<E> {
return map.toString();
}
@SuppressWarnings("unchecked")
public Iterator<E> keys(boolean up) {
public Iterator<E> keys(boolean up) {
synchronized (this) {
// re-organize entries
TreeMap<IntScore, Set<E>> m = new TreeMap<IntScore, Set<E>>();

@ -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);

@ -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

@ -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<? extends Reference> 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 <ReferenceType extends Reference> {
private class DumpJob<ReferenceType extends Reference> {
private ReferenceContainerCache<ReferenceType> cache;
private File file;
private ReferenceContainerArray<ReferenceType> array;

@ -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) {

Loading…
Cancel
Save