This commit is contained in:
zzz
2011-05-23 19:16:33 +00:00
parent 4ea5622842
commit 7ab95d0144
21 changed files with 79 additions and 74 deletions

View File

@@ -156,7 +156,7 @@ class AddressBook {
/**
* Return an iterator over the addresses in the AddressBook.
* @since 0.8.6
* @since 0.8.7
*/
public Iterator<Map.Entry<String, String>> iterator() {
if (this.subFile != null)
@@ -166,7 +166,7 @@ class AddressBook {
/**
* Delete the temp file or clear the map.
* @since 0.8.6
* @since 0.8.7
*/
public void delete() {
if (this.subFile != null) {

View File

@@ -38,7 +38,7 @@ import java.util.NoSuchElementException;
* Callers should iterate all the way through or call close()
* to ensure the underlying stream is closed.
*
* @since 0.8.6
* @since 0.8.7
*/
class ConfigIterator implements Iterator<Map.Entry<String, String>> {

View File

@@ -109,7 +109,7 @@ public class Daemon {
* @param log
* The log to write changes and conflicts to.
* May be null.
* @since 0.8.6
* @since 0.8.7
*/
public static void update(NamingService router, File published, SubscriptionList subscriptions, Log log) {
// If the NamingService is a database, we look up as we go.

View File

@@ -67,7 +67,7 @@ class DaemonThread extends Thread implements NamingServiceUpdater {
/**
* The NamingServiceUpdater interface
* @param options ignored
* @since 0.8.6
* @since 0.8.7
*/
public void update(Properties options) {
interrupt();

View File

@@ -207,12 +207,12 @@ class SummaryListener implements RateSummaryListener {
long now() { return _context.clock().now(); }
/** @since 0.8.6 */
/** @since 0.8.7 */
String getBackendName() {
return _isPersistent ? RrdNioBackendFactory.NAME : RrdMemoryBackendFactory.NAME;
}
/** @since 0.8.6 */
/** @since 0.8.7 */
int getRows() {
return _rows;
}

View File

@@ -73,7 +73,7 @@ public class AddressBean
/**
* The Unicode name, translated from Punycode
* @return the original string on error
* @since 0.8.6
* @since 0.8.7
*/
public String getDisplayName()
{
@@ -83,7 +83,7 @@ public class AddressBean
/**
* The Unicode name, translated from Punycode
* @return the original string on error
* @since 0.8.6
* @since 0.8.7
*/
public static String toUnicode(String host) {
if (haveIDN)
@@ -93,7 +93,7 @@ public class AddressBean
/**
* Is the ASCII name Punycode-encoded?
* @since 0.8.6
* @since 0.8.7
*/
public boolean isIDN()
{
@@ -110,7 +110,7 @@ public class AddressBean
* @param name will be converted to lower case
* @return name converted to lower case and punycoded if necessary
* @throws IAE on various errors or if IDN is needed but not available
* @since 0.8.6
* @since 0.8.7
*/
static String toASCII(String host) throws IllegalArgumentException {
host = host.toLowerCase();
@@ -159,7 +159,7 @@ public class AddressBean
return host;
}
/** @since 0.8.6 */
/** @since 0.8.7 */
public String getB32()
{
byte[] dest = Base64.decode(destination);
@@ -169,12 +169,12 @@ public class AddressBean
return Base32.encode(hash) + ".b32.i2p";
}
/** @since 0.8.6 */
/** @since 0.8.7 */
public void setProperties(Properties p) {
props = p;
}
/** @since 0.8.6 */
/** @since 0.8.7 */
public String getSource() {
String rv = getProp("s");
if (rv.startsWith("http://"))
@@ -182,25 +182,25 @@ public class AddressBean
return rv;
}
/** @since 0.8.6 */
/** @since 0.8.7 */
public String getAdded() {
return getDate("a");
}
/** @since 0.8.6 */
/** @since 0.8.7 */
public String getModded() {
return getDate("m");
}
/** @since 0.8.6 */
/** @since 0.8.7 */
public String getNotes() {
return getProp("notes");
}
/**
* Do this the easy way
* @since 0.8.6
* @since 0.8.7
*/
public String getCert() {
// (4 / 3) * (pubkey length + signing key length)
@@ -224,7 +224,7 @@ public class AddressBean
}
}
/** @since 0.8.6 */
/** @since 0.8.7 */
private String getProp(String p) {
if (props == null)
return "";
@@ -232,7 +232,7 @@ public class AddressBean
return rv != null ? rv : "";
}
/** @since 0.8.6 */
/** @since 0.8.7 */
private String getDate(String key) {
String d = getProp(key);
if (d.length() > 0) {

View File

@@ -443,7 +443,7 @@ public class AddressbookBean
/**
* @return beginning index into results
* @since 0.8.6
* @since 0.8.7
*/
public String getResultBegin() {
return isPrefiltered() ? "0" : Integer.toString(getBeginInt());
@@ -465,7 +465,7 @@ public class AddressbookBean
/**
* @return ending index into results
* @since 0.8.6
* @since 0.8.7
*/
public String getResultEnd() {
return Integer.toString(isPrefiltered() ? resultSize() - 1 : getEndInt());
@@ -480,7 +480,7 @@ public class AddressbookBean
/**
* Does the entries map contain only the lookup result,
* or must we index into it?
* @since 0.8.6
* @since 0.8.7
*/
protected boolean isPrefiltered() {
return false;
@@ -488,7 +488,7 @@ public class AddressbookBean
/**
* @return the size of the lookup result
* @since 0.8.6
* @since 0.8.7
*/
protected int resultSize() {
return entries.length;
@@ -496,7 +496,7 @@ public class AddressbookBean
/**
* @return the total size of the address book
* @since 0.8.6
* @since 0.8.7
*/
protected int totalSize() {
return entries.length;
@@ -517,7 +517,7 @@ public class AddressbookBean
return Messages.getString(s, o, o2);
}
/** translate (ngettext) @since 0.8.6 */
/** translate (ngettext) @since 0.8.7 */
protected static String ngettext(String s, String p, int n) {
return Messages.getString(n, s, p);
}

View File

@@ -8,7 +8,7 @@ import net.i2p.I2PAppContext;
/**
* Format a date in local time zone
* @since 0.8.6
* @since 0.8.7
*/
public abstract class FormatDate
{

View File

@@ -32,7 +32,7 @@ public class Messages {
return Translate.getString(s, o, o2, I2PAppContext.getGlobalContext(), BUNDLE_NAME);
}
/** translate (ngettext) @since 0.8.6 */
/** translate (ngettext) @since 0.8.7 */
public static String getString(int n, String s, String p) {
return Translate.getString(n, s, p, I2PAppContext.getGlobalContext(), BUNDLE_NAME);
}

View File

@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @since 0.8.6
* @since 0.8.7
*/
package i2p.susi.dns;
@@ -41,7 +41,7 @@ import net.i2p.data.Destination;
* Talk to the NamingService API instead of modifying the hosts.txt files directly,
* except for the 'published' addressbook.
*
* @since 0.8.6
* @since 0.8.7
*/
public class NamingServiceBean extends AddressbookBean
{