code cleanup

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1159 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent a04930f025
commit 1d6a6d1f85

@ -94,7 +94,7 @@ public final class transfer {
// consolidation of cr files // consolidation of cr files
//System.out.println("yacy/transfer:post=" + post.toString()); //System.out.println("yacy/transfer:post=" + post.toString());
String cansendprotocol = (String) post.get("can-send-protocol", "http"); String cansendprotocol = (String) post.get("can-send-protocol", "http");
String access = serverCodings.enhancedCoder.encodeMD5B64(otherpeer + ":" + filename, true) + ":" + serverCodings.enhancedCoder.encodeMD5B64("" + System.currentTimeMillis(), true); String access = serverCodings.encodeMD5B64(otherpeer + ":" + filename, true) + ":" + serverCodings.encodeMD5B64("" + System.currentTimeMillis(), true);
prop.put("response", "ok"); prop.put("response", "ok");
prop.put("process_access", access); prop.put("process_access", access);
prop.put("process_address", yacyCore.seedDB.mySeed.getAddress()); prop.put("process_address", yacyCore.seedDB.mySeed.getAddress());
@ -113,7 +113,7 @@ public final class transfer {
byte[] filebytes = (byte[]) post.get("filename$file"); byte[] filebytes = (byte[]) post.get("filename$file");
String accesscode = (String) post.get("access", ""); // one-time authentication String accesscode = (String) post.get("access", ""); // one-time authentication
String md5 = (String) post.get("md5", ""); // one-time authentication String md5 = (String) post.get("md5", ""); // one-time authentication
java.util.HashMap perm = sb.rankingPermissions; //java.util.HashMap perm = sb.rankingPermissions;
//System.out.println("PERMISSIONDEBUG: accesscode=" + accesscode + ", permissions=" + perm.toString()); //System.out.println("PERMISSIONDEBUG: accesscode=" + accesscode + ", permissions=" + perm.toString());
String grantedFile = (String) sb.rankingPermissions.get(accesscode); String grantedFile = (String) sb.rankingPermissions.get(accesscode);
prop.put("process_tt", ""); prop.put("process_tt", "");

@ -68,24 +68,22 @@ public class wikiBoard {
private kelondroMap datbase = null; private kelondroMap datbase = null;
private kelondroMap bkpbase = null; private kelondroMap bkpbase = null;
private HashMap authors = new HashMap(); private HashMap authors = new HashMap();
private int sn = 0;
public wikiBoard(File actpath, File bkppath, int bufferkb) throws IOException { public wikiBoard(File actpath, File bkppath, int bufferkb) throws IOException {
new File(actpath.getParent()).mkdir(); new File(actpath.getParent()).mkdir();
if (datbase == null) { if (datbase == null) {
if (actpath.exists()) if (actpath.exists())
datbase = new kelondroMap(new kelondroDyn(actpath, bufferkb/2 * 0x40)); datbase = new kelondroMap(new kelondroDyn(actpath, bufferkb/2 * 0x40));
else else
datbase = new kelondroMap(new kelondroDyn(actpath, bufferkb/2 * 0x400, keyLength, recordSize)); datbase = new kelondroMap(new kelondroDyn(actpath, bufferkb/2 * 0x400, keyLength, recordSize));
} }
new File(bkppath.getParent()).mkdir(); new File(bkppath.getParent()).mkdir();
if (bkpbase == null) { if (bkpbase == null) {
if (bkppath.exists()) if (bkppath.exists())
bkpbase = new kelondroMap(new kelondroDyn(bkppath, bufferkb/2 * 0x400)); bkpbase = new kelondroMap(new kelondroDyn(bkppath, bufferkb/2 * 0x400));
else else
bkpbase = new kelondroMap(new kelondroDyn(bkppath, bufferkb/2 * 0x400, keyLength + dateFormat.length(), recordSize)); bkpbase = new kelondroMap(new kelondroDyn(bkppath, bufferkb/2 * 0x400, keyLength + dateFormat.length(), recordSize));
} }
sn = 0;
} }
public int sizeOfTwo() { public int sizeOfTwo() {

@ -57,7 +57,7 @@ import de.anomic.server.serverByteBuffer;
*/ */
public final class httpChunkedInputStream extends InputStream { public final class httpChunkedInputStream extends InputStream {
private static final int READ_CHUNK_STATE_NORMAL = 0; //private static final int READ_CHUNK_STATE_NORMAL = 0;
private static final int READ_CHUNK_STATE_CR_READ = 1; private static final int READ_CHUNK_STATE_CR_READ = 1;
private static final int READ_CHUNK_STATE_IN_EXT_CHUNK = 2; private static final int READ_CHUNK_STATE_IN_EXT_CHUNK = 2;
private static final int READ_CHUNK_STATE_FINISHED = -1; private static final int READ_CHUNK_STATE_FINISHED = -1;

@ -77,7 +77,9 @@ import de.anomic.server.logging.serverLog;
public final class httpHeader extends TreeMap implements Map { public final class httpHeader extends TreeMap implements Map {
/* ============================================================= private static final long serialVersionUID = 17L;
/* =============================================================
* Constants defining http versions * Constants defining http versions
* ============================================================= */ * ============================================================= */
public static final String HTTP_VERSION_0_9 = "HTTP/0.9"; public static final String HTTP_VERSION_0_9 = "HTTP/0.9";
@ -664,7 +666,7 @@ public final class httpHeader extends TreeMap implements Map {
// write header // write header
Iterator i = keySet().iterator(); Iterator i = keySet().iterator();
String key, value; String key;
char tag; char tag;
int count; int count;
while (i.hasNext()) { while (i.hasNext()) {

@ -79,7 +79,6 @@ import de.anomic.server.serverCodings;
import de.anomic.server.serverCore; import de.anomic.server.serverCore;
import de.anomic.server.serverObjects; import de.anomic.server.serverObjects;
import de.anomic.server.logging.serverLog; import de.anomic.server.logging.serverLog;
import de.anomic.server.serverCore.Session;
import org.apache.commons.pool.impl.GenericObjectPool; import org.apache.commons.pool.impl.GenericObjectPool;
@ -113,9 +112,6 @@ public final class httpc {
// --- The GMT standard date format used in the HTTP protocol // --- The GMT standard date format used in the HTTP protocol
private static final SimpleDateFormat HTTPGMTFormatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US); private static final SimpleDateFormat HTTPGMTFormatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US);
private static final SimpleDateFormat EMLFormatter = new SimpleDateFormat("dd MMM yyyy HH:mm:ss", Locale.US);
private static final SimpleDateFormat ShortFormatter = new SimpleDateFormat("yyyyMMddHHmmss");
//Mo 06 Sep 2004 23:32
static final HashMap reverseMappingCache = new HashMap(); static final HashMap reverseMappingCache = new HashMap();
// the dns cache // the dns cache
@ -134,9 +130,8 @@ public final class httpc {
private Socket socket = null; // client socket for commands private Socket socket = null; // client socket for commands
private Thread socketOwner = null; private Thread socketOwner = null;
String host = null; String host = null;
private long timeout; //private long timeout;
private long handle;
// output and input streams for client control connection // output and input streams for client control connection
PushbackInputStream clientInput = null; PushbackInputStream clientInput = null;
private OutputStream clientOutput = null; private OutputStream clientOutput = null;
@ -537,13 +532,10 @@ public final class httpc {
String incomingByteCountAccounting, String incomingByteCountAccounting,
String outgoingByteCountAccounting String outgoingByteCountAccounting
) throws IOException { ) throws IOException {
this.handle = System.currentTimeMillis();
//serverLog.logDebug("HTTPC", handle + " initialized"); //serverLog.logDebug("HTTPC", handle + " initialized");
this.remoteProxyUse = false; this.remoteProxyUse = false;
this.timeout = timeout; //this.timeout = timeout;
if(yacyDebugMode){ //if(yacyDebugMode){ this.timeout=60000; }
this.timeout=60000;
}
this.savedRemoteHost = server; this.savedRemoteHost = server;
try { try {
@ -642,8 +634,7 @@ public final class httpc {
} }
this.host = null; this.host = null;
this.timeout = 0; //this.timeout = 0;
this.handle = 0;
this.remoteProxyUse = false; this.remoteProxyUse = false;
this.remoteProxyConfig = null; this.remoteProxyConfig = null;
@ -1525,8 +1516,7 @@ do upload
public int statusCode = 503; public int statusCode = 503;
public String statusText = "internal error"; public String statusText = "internal error";
private boolean gzip; // for gunzipping on-the-fly private boolean gzip; // for gunzipping on-the-fly
private String encoding;
/** /**
* Constructor for this class. Reads in the content for the given outer * Constructor for this class. Reads in the content for the given outer
* instance and parses it. * instance and parses it.
@ -1893,10 +1883,12 @@ final class httpcFactory implements org.apache.commons.pool.PoolableObjectFactor
* @see org.apache.commons.pool.PoolableObjectFactory#validateObject(java.lang.Object) * @see org.apache.commons.pool.PoolableObjectFactory#validateObject(java.lang.Object)
*/ */
public boolean validateObject(Object obj) { public boolean validateObject(Object obj) {
/*
if (obj instanceof httpc) { if (obj instanceof httpc) {
httpc theHttpc = (httpc) obj; httpc theHttpc = (httpc) obj;
return true; return true;
} }
*/
return true; return true;
} }
@ -1914,9 +1906,11 @@ final class httpcFactory implements org.apache.commons.pool.PoolableObjectFactor
*/ */
public void passivateObject(Object obj) { public void passivateObject(Object obj) {
//log.debug(" passivateObject..." + obj); //log.debug(" passivateObject..." + obj);
/*
if (obj instanceof Session) { if (obj instanceof Session) {
httpc theHttpc = (httpc) obj; httpc theHttpc = (httpc) obj;
} }
*/
} }
} }

@ -127,8 +127,6 @@ public final class httpd implements serverHandler {
// needed for logging // needed for logging
private final serverLog log = new serverLog("HTTPD"); private final serverLog log = new serverLog("HTTPD");
private final serverCodings codings = new serverCodings(true);
// class methods // class methods
public httpd(serverSwitch s, httpdHandler fileHandler, httpdHandler proxyHandler) { public httpd(serverSwitch s, httpdHandler fileHandler, httpdHandler proxyHandler) {
// handler info // handler info
@ -203,7 +201,6 @@ public final class httpd implements serverHandler {
// each pattern may contain one wildcard-character '*' which matches anything // each pattern may contain one wildcard-character '*' which matches anything
StringTokenizer st = new StringTokenizer(latch,","); StringTokenizer st = new StringTokenizer(latch,",");
String pattern; String pattern;
int pos;
while (st.hasMoreTokens()) { while (st.hasMoreTokens()) {
pattern = st.nextToken(); pattern = st.nextToken();
if (key.matches(pattern)) return true; if (key.matches(pattern)) return true;
@ -356,7 +353,7 @@ public final class httpd implements serverHandler {
} }
parseRequestLine(unknownCommand, args); parseRequestLine(unknownCommand, args);
String httpVersion = this.prop.getProperty(httpHeader.CONNECTION_PROP_HTTP_VER,"HTTP/0.9"); //String httpVersion = this.prop.getProperty(httpHeader.CONNECTION_PROP_HTTP_VER,"HTTP/0.9");
sendRespondError(this.prop,this.session.out,0,501,null,unknownCommand + " method not implemented",null); sendRespondError(this.prop,this.session.out,0,501,null,unknownCommand + " method not implemented",null);
return serverCore.TERMINATE_CONNECTION; return serverCore.TERMINATE_CONNECTION;
@ -491,7 +488,7 @@ public final class httpd implements serverHandler {
httpHeader.handleTransparentProxySupport(header, this.prop, virtualHost, httpdProxyHandler.isTransparentProxy); httpHeader.handleTransparentProxySupport(header, this.prop, virtualHost, httpdProxyHandler.isTransparentProxy);
// determines if the connection should be kept alive // determines if the connection should be kept alive
boolean persistent = handlePersistentConnection(header); //boolean persistent = handlePersistentConnection(header);
// return multi-line message // return multi-line message
if (this.prop.getProperty("HOST").equals(virtualHost)) { if (this.prop.getProperty("HOST").equals(virtualHost)) {
@ -544,7 +541,7 @@ public final class httpd implements serverHandler {
httpHeader.handleTransparentProxySupport(header, this.prop, virtualHost, httpdProxyHandler.isTransparentProxy); httpHeader.handleTransparentProxySupport(header, this.prop, virtualHost, httpdProxyHandler.isTransparentProxy);
// determines if the connection should be kept alive // determines if the connection should be kept alive
boolean persistent = handlePersistentConnection(header); //boolean persistent = handlePersistentConnection(header);
// return multi-line message // return multi-line message
if (prop.getProperty("HOST").equals(virtualHost)) { if (prop.getProperty("HOST").equals(virtualHost)) {
@ -817,7 +814,7 @@ public final class httpd implements serverHandler {
// we need some constants // we need some constants
byte[] namec = (new String("name=")).getBytes(); byte[] namec = (new String("name=")).getBytes();
byte[] filenamec = (new String("filename=")).getBytes(); byte[] filenamec = (new String("filename=")).getBytes();
byte[] semicolonc = (new String(";")).getBytes(); //byte[] semicolonc = (new String(";")).getBytes();
byte[] quotec = new byte[] {(byte) '"'}; byte[] quotec = new byte[] {(byte) '"'};
// now loop over boundaries // now loop over boundaries
@ -935,7 +932,6 @@ public final class httpd implements serverHandler {
// return a position of a pattern in an array // return a position of a pattern in an array
if (start > array.length - pattern.length) return -1; if (start > array.length - pattern.length) return -1;
if (pattern.length == 0) return start; if (pattern.length == 0) return start;
int i;
for (int pos = start; pos <= array.length - pattern.length; pos++) for (int pos = start; pos <= array.length - pattern.length; pos++)
if ((array[pos] == pattern[0]) && (equals(array, pos, pattern, 0, pattern.length))) if ((array[pos] == pattern[0]) && (equals(array, pos, pattern, 0, pattern.length)))
return pos; return pos;
@ -1259,7 +1255,7 @@ public final class httpd implements serverHandler {
// write header // write header
Iterator i = header.keySet().iterator(); Iterator i = header.keySet().iterator();
String key, value; String key;
char tag; char tag;
int count; int count;
//System.out.println("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv"); //System.out.println("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");

@ -484,7 +484,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
// write the array to the client // write the array to the client
httpd.sendRespondHeader(this.connectionProperties, out, "HTTP/1.1", 200, null, mimeType, result.length, targetDate, null, null, null, null); httpd.sendRespondHeader(this.connectionProperties, out, "HTTP/1.1", 200, null, mimeType, result.length, targetDate, null, null, null, null);
Thread.currentThread().sleep(200); // see below Thread.sleep(200); // see below
serverFileUtils.write(result, out); serverFileUtils.write(result, out);
} }
} else if ((targetClass != null) && (path.endsWith(".stream"))) { } else if ((targetClass != null) && (path.endsWith(".stream"))) {
@ -497,7 +497,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
httpd.sendRespondHeader(this.connectionProperties, out, httpVersion, 200, null); httpd.sendRespondHeader(this.connectionProperties, out, httpVersion, 200, null);
// in case that there are no args given, args = null or empty hashmap // in case that there are no args given, args = null or empty hashmap
serverObjects tp = (serverObjects) rewriteMethod(targetClass).invoke(null, new Object[] {requestHeader, args, switchboard}); /*serverObjects tp = (serverObjects)*/ rewriteMethod(targetClass).invoke(null, new Object[] {requestHeader, args, switchboard});
this.forceConnectionClose(); this.forceConnectionClose();
return; return;
@ -508,7 +508,6 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
String mimeType = mimeTable.getProperty(targetExt,"text/html"); String mimeType = mimeTable.getProperty(targetExt,"text/html");
byte[] result; byte[] result;
boolean zipContent = requestHeader.acceptGzip() && httpd.shallTransportZipped("." + conProp.getProperty("EXT","")); boolean zipContent = requestHeader.acceptGzip() && httpd.shallTransportZipped("." + conProp.getProperty("EXT",""));
String md5String = null;
if (path.endsWith("html") || if (path.endsWith("html") ||
path.endsWith("xml") || path.endsWith("xml") ||
path.endsWith("rss") || path.endsWith("rss") ||
@ -645,7 +644,6 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
for ( int i = 0; i < digest.length; i++ ) for ( int i = 0; i < digest.length; i++ )
digestString.append(Integer.toHexString( digest[i]&0xff)); digestString.append(Integer.toHexString( digest[i]&0xff));
md5String = digestString.toString();
} }
} finally { } finally {
if (zippedOut != null) try {zippedOut.close();} catch(Exception e) {} if (zippedOut != null) try {zippedOut.close();} catch(Exception e) {}
@ -667,7 +665,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
// write the array to the client // write the array to the client
httpd.sendRespondHeader(this.connectionProperties, out, httpVersion, 200, null, mimeType, result.length, targetDate, null, null, (zipContent)?"gzip":null, null); httpd.sendRespondHeader(this.connectionProperties, out, httpVersion, 200, null, mimeType, result.length, targetDate, null, null, (zipContent)?"gzip":null, null);
Thread.currentThread().sleep(200); // this solved the message problem (!!) Thread.sleep(200); // this solved the message problem (!!)
serverFileUtils.write(result, out); serverFileUtils.write(result, out);
} else { } else {
httpd.sendRespondError(conProp,out,3,404,"File not Found",null,null); httpd.sendRespondError(conProp,out,3,404,"File not Found",null,null);
@ -761,7 +759,6 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
private final Method rewriteMethod(File classFile) { private final Method rewriteMethod(File classFile) {
Method m = null; Method m = null;
long start = System.currentTimeMillis();
// now make a class out of the stream // now make a class out of the stream
try { try {
if (useTemplateCache) { if (useTemplateCache) {

@ -1141,7 +1141,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
(sslSocket.isConnected()) && (sslSocket.isConnected()) &&
((cs.isAlive()) || (sc.isAlive()))) { ((cs.isAlive()) || (sc.isAlive()))) {
// idle // idle
try {Thread.currentThread().sleep(1000);} catch (InterruptedException e) {} // wait a while try {Thread.sleep(1000);} catch (InterruptedException e) {} // wait a while
} }
// set stop mode // set stop mode
cs.pleaseTerminate(); cs.pleaseTerminate();
@ -1260,7 +1260,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
// normal creation of httpc object // normal creation of httpc object
return newhttpc(server, port, timeout); return newhttpc(server, port, timeout);
} }
/*
private void textMessage(OutputStream out, String body) throws IOException { private void textMessage(OutputStream out, String body) throws IOException {
out.write(("HTTP/1.1 200 OK\r\n").getBytes()); out.write(("HTTP/1.1 200 OK\r\n").getBytes());
out.write((httpHeader.SERVER + ": AnomicHTTPD (www.anomic.de)\r\n").getBytes()); out.write((httpHeader.SERVER + ": AnomicHTTPD (www.anomic.de)\r\n").getBytes());
@ -1272,7 +1272,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
out.write(body.getBytes()); out.write(body.getBytes());
out.flush(); out.flush();
} }
*/
private void handleProxyException(Exception e, httpc remote, Properties conProp, OutputStream respond, URL url) { private void handleProxyException(Exception e, httpc remote, Properties conProp, OutputStream respond, URL url) {
// this may happen if // this may happen if
// - the targeted host does not exist // - the targeted host does not exist

@ -833,7 +833,7 @@ cd ..
for (int i = 1; i< cmd.length; i++) s = s + " " + cmd[i]; for (int i = 1; i< cmd.length; i++) s = s + " " + cmd[i];
try { try {
send(s); send(s);
String reply = receive(); /*String reply =*/ receive();
} catch (IOException e) {} } catch (IOException e) {}
return true; return true;
} }
@ -1038,7 +1038,6 @@ cd ..
// read file system data // read file system data
String line; String line;
int i = 0;
Vector files = new Vector(); Vector files = new Vector();
while ((line = ClientStream.readLine()) != null) while ((line = ClientStream.readLine()) != null)
if (!line.startsWith("total ")) files.addElement(line); if (!line.startsWith("total ")) files.addElement(line);
@ -1100,7 +1099,7 @@ cd ..
Enumeration x = l.elements(); Enumeration x = l.elements();
String remote; String remote;
File local; File local;
int idx; // the search for " " is only for improper lists from the server. this fails if the file name has a " " in it //int idx; // the search for " " is only for improper lists from the server. this fails if the file name has a " " in it
while (x.hasMoreElements()) { while (x.hasMoreElements()) {
remote = (String) x.nextElement(); remote = (String) x.nextElement();
//idx = remote.lastIndexOf(" "); //idx = remote.lastIndexOf(" ");
@ -1764,7 +1763,7 @@ cd ..
} }
private String login() throws IOException { public String login() throws IOException {
// force anonymous login if not already connected // force anonymous login if not already connected
if (this.account == null) { if (this.account == null) {
login("anonymous", "bob@"); login("anonymous", "bob@");
@ -1773,7 +1772,7 @@ cd ..
return this.account; return this.account;
} }
private String sys() throws IOException { public String sys() throws IOException {
// send system command // send system command
send("SYST"); send("SYST");
@ -1797,7 +1796,9 @@ cd ..
} }
class ee extends SecurityException { class ee extends SecurityException {
private int value = 0;
private static final long serialVersionUID = 1L;
private int value = 0;
public ee() {} public ee() {}
public ee(int value) { public ee(int value) {
super(); super();

@ -209,7 +209,7 @@ public final class serverLog {
if(!log.canRead()) log.mkdir(); if(!log.canRead()) log.mkdir();
// generating the root logger // generating the root logger
Logger logger = Logger.getLogger(""); /*Logger logger =*/ Logger.getLogger("");
// System.setOut(new PrintStream(new LoggerOutputStream(Logger.getLogger("STDOUT"),Level.FINEST))); // System.setOut(new PrintStream(new LoggerOutputStream(Logger.getLogger("STDOUT"),Level.FINEST)));
// System.setErr(new PrintStream(new LoggerOutputStream(Logger.getLogger("STDERR"),Level.SEVERE))); // System.setErr(new PrintStream(new LoggerOutputStream(Logger.getLogger("STDERR"),Level.SEVERE)));

@ -464,7 +464,6 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements http
if (!(path.isDirectory())) path = path.getParentFile(); if (!(path.isDirectory())) path = path.getParentFile();
if ((path == null) || (!(path.isDirectory()))) return result; if ((path == null) || (!(path.isDirectory()))) return result;
String[] templates = path.list(); String[] templates = path.list();
int c;
for (int i = 0; i < templates.length; i++) { for (int i = 0; i < templates.length; i++) {
if (templates[i].endsWith(".template")) try { if (templates[i].endsWith(".template")) try {
//System.out.println("TEMPLATE " + templates[i].substring(0, templates[i].length() - 9) + ": " + new String(buf, 0, c)); //System.out.println("TEMPLATE " + templates[i].substring(0, templates[i].length() - 9) + ": " + new String(buf, 0, c));

@ -154,7 +154,6 @@ public class cryptbig {
if (enc == null) return null; if (enc == null) return null;
return serverCodings.standardCoder.encodeBase64(enc); return serverCodings.standardCoder.encodeBase64(enc);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
} catch (java.io.IOException e) {
} }
return null; return null;
} }
@ -168,7 +167,6 @@ public class cryptbig {
if (dec == null) return null; if (dec == null) return null;
return new String(dec, "UTF8"); return new String(dec, "UTF8");
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
} catch (java.io.IOException e) {
} }
return null; return null;
} }

@ -47,7 +47,8 @@ import java.util.Set;
public class disorderSet extends HashSet implements Set { public class disorderSet extends HashSet implements Set {
disorderHeap dh; private static final long serialVersionUID = 1L;
disorderHeap dh;
public disorderSet() { public disorderSet() {
super(); super();

@ -185,7 +185,7 @@ public final class yacy {
String[] check = "a,b".split(","); // split needs java 1.4 String[] check = "a,b".split(","); // split needs java 1.4
} catch (NoSuchMethodError e) { } catch (NoSuchMethodError e) {
System.err.println("STARTUP: Java Version too low. You need at least Java 1.4.2 to run YACY"); System.err.println("STARTUP: Java Version too low. You need at least Java 1.4.2 to run YACY");
Thread.currentThread().sleep(3000); Thread.sleep(3000);
System.exit(-1); System.exit(-1);
} }

Loading…
Cancel
Save