Addressbook javadoc fixes

Addressbook now JDK5
build.xml fixed to remove annoying javadoc warnings.
This commit is contained in:
sponge
2008-10-12 17:07:21 +00:00
parent 1c6b78a8da
commit e103f33c29
8 changed files with 19 additions and 6 deletions

View File

@ -57,7 +57,7 @@ public class AddressBook {
this.addresses = addresses; this.addresses = addresses;
} }
/** /*
* Construct an AddressBook from the contents of the file at url. If the * Construct an AddressBook from the contents of the file at url. If the
* remote file cannot be read, construct an empty AddressBook * remote file cannot be read, construct an empty AddressBook
* *
@ -81,6 +81,7 @@ public class AddressBook {
new File("addressbook.tmp").delete(); new File("addressbook.tmp").delete();
} }
*/ */
static final long MAX_SUB_SIZE = 3 * 1024 * 1024l; //about 5,000 hosts
/** /**
* Construct an AddressBook from the Subscription subscription. If the * Construct an AddressBook from the Subscription subscription. If the
* address book at subscription has not changed since the last time it was * address book at subscription has not changed since the last time it was
@ -89,8 +90,9 @@ public class AddressBook {
* *
* @param subscription * @param subscription
* A Subscription instance pointing at a remote address book. * A Subscription instance pointing at a remote address book.
* @param proxyHost hostname of proxy
* @param proxyPort port number of proxy
*/ */
static final long MAX_SUB_SIZE = 3 * 1024 * 1024l; //about 5,000 hosts
public AddressBook(Subscription subscription, String proxyHost, int proxyPort) { public AddressBook(Subscription subscription, String proxyHost, int proxyPort) {
this.location = subscription.getLocation(); this.location = subscription.getLocation();
EepGet get = new EepGet(I2PAppContext.getGlobalContext(), true, EepGet get = new EepGet(I2PAppContext.getGlobalContext(), true,
@ -152,6 +154,7 @@ public class AddressBook {
* *
* @return A String representing the contents of the AddressBook. * @return A String representing the contents of the AddressBook.
*/ */
@Override
public String toString() { public String toString() {
return this.addresses.toString(); return this.addresses.toString();
} }
@ -195,6 +198,7 @@ public class AddressBook {
* *
* @param other * @param other
* An AddressBook to merge with. * An AddressBook to merge with.
* @param overwrite True to overwrite
* @param log * @param log
* The log to write messages about new addresses or conflicts to. * The log to write messages about new addresses or conflicts to.
*/ */

View File

@ -213,8 +213,7 @@ public class ConfigParser {
* *
* @param file * @param file
* A File to attempt to parse. * A File to attempt to parse.
* @param string * @param list list of files to parse
* A List to use as the default, if file fails.
* @return A List consisting of one element for each line in file, or if * @return A List consisting of one element for each line in file, or if
* file cannot be read, list. * file cannot be read, list.
*/ */

View File

@ -160,7 +160,8 @@ public class Daemon {
settings = ConfigParser.parse(settingsFile, defaultSettings); settings = ConfigParser.parse(settingsFile, defaultSettings);
// wait // wait
try { try {
Thread.currentThread().sleep(5*60*1000); Thread.sleep(5*60*1000);
// Static method, and redundent Thread.currentThread().sleep(5*60*1000);
} catch (InterruptedException ie) {} } catch (InterruptedException ie) {}
while (true) { while (true) {

View File

@ -43,6 +43,7 @@ public class DaemonThread extends Thread {
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Runnable#run() * @see java.lang.Runnable#run()
*/ */
@Override
public void run() { public void run() {
//try { //try {
// Thread.sleep(5 * 60 * 1000); // Thread.sleep(5 * 60 * 1000);

View File

@ -44,6 +44,7 @@ public class Servlet extends GenericServlet {
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.servlet.Servlet#init(javax.servlet.ServletConfig) * @see javax.servlet.Servlet#init(javax.servlet.ServletConfig)
*/ */
@Override
public void init(ServletConfig config) { public void init(ServletConfig config) {
try { try {
super.init(config); super.init(config);

View File

@ -41,6 +41,8 @@ public class SubscriptionIterator implements Iterator {
* *
* @param subscriptions * @param subscriptions
* List of Subscription objects that represent address books. * List of Subscription objects that represent address books.
* @param proxyHost proxy hostname
* @param proxyPort proxt port number
*/ */
public SubscriptionIterator(List subscriptions, String proxyHost, int proxyPort) { public SubscriptionIterator(List subscriptions, String proxyHost, int proxyPort) {
this.subIterator = subscriptions.iterator(); this.subIterator = subscriptions.iterator();

View File

@ -60,6 +60,9 @@ public class SubscriptionList {
* @param lastModifiedFile * @param lastModifiedFile
* A file containg the last-modified headers used for conditional * A file containg the last-modified headers used for conditional
* GET. The file is in the format "url=leastmodified". * GET. The file is in the format "url=leastmodified".
* @param defaultSubs default subscription file
* @param proxyHost proxy hostname
* @param proxyPort proxy port number
*/ */
public SubscriptionList(File locationsFile, File etagsFile, public SubscriptionList(File locationsFile, File etagsFile,
File lastModifiedFile, List defaultSubs, String proxyHost, File lastModifiedFile, List defaultSubs, String proxyHost,

View File

@ -149,7 +149,9 @@
</sourcepath> </sourcepath>
<classpath> <classpath>
<pathelement location="apps/jetty/jettylib/org.mortbay.jetty.jar" /> <pathelement location="apps/jetty/jettylib/org.mortbay.jetty.jar" />
<pathelement location="apps/jetty/jettylib/javax.servlet.jar" />
<pathelement location="apps/systray/java/lib/systray4j.jar" /> <pathelement location="apps/systray/java/lib/systray4j.jar" />
<pathelement location="apps/jrobin/jrobin-1.4.0.jar" />
<pathelement location="installer/lib/wrapper/win32/wrapper.jar" /> <pathelement location="installer/lib/wrapper/win32/wrapper.jar" />
<pathelement location="core/lib/junit.jar" /> <pathelement location="core/lib/junit.jar" />
</classpath> </classpath>