forked from I2P_Developers/i2p.i2p
javadoc fixes part 7 (ticket #1894)
This commit is contained in:
@ -336,7 +336,7 @@ import java.text.MessageFormat;
|
||||
* break;
|
||||
* }
|
||||
* //
|
||||
* for (int i = g.getOptind(); i < argv.length ; i++)
|
||||
* for (int i = g.getOptind(); i < argv.length ; i++)
|
||||
* System.out.println("Non option argv element: " + argv[i] + "\n");
|
||||
* </pre>
|
||||
* <p>
|
||||
|
@ -534,7 +534,7 @@ public abstract class NamingService {
|
||||
* See also lookup(Hash, int).
|
||||
*
|
||||
* @param hostname must be {52 chars}.b32.i2p
|
||||
* @param timeout in seconds; <= 0 means use router default
|
||||
* @param timeout in seconds; <= 0 means use router default
|
||||
* @return dest or null
|
||||
* @since 0.8.7
|
||||
*/
|
||||
@ -546,7 +546,7 @@ public abstract class NamingService {
|
||||
* Same as lookupBase32() but with the SHA256 Hash precalculated
|
||||
* This implementation returns null.
|
||||
*
|
||||
* @param timeout in seconds; <= 0 means use router default
|
||||
* @param timeout in seconds; <= 0 means use router default
|
||||
* @return dest or null
|
||||
* @since 0.8.7
|
||||
*/
|
||||
|
@ -429,11 +429,11 @@ public final class ElGamalAESEngine {
|
||||
*
|
||||
* In the router, we always use garlic messages. A garlic message with a single
|
||||
* clove and zero data is about 84 bytes, so that's 123 bytes minimum. So any paddingSize
|
||||
* <= 128 is a no-op as every message will be at least 128 bytes
|
||||
* <= 128 is a no-op as every message will be at least 128 bytes
|
||||
* (Streaming, if used, adds more overhead).
|
||||
*
|
||||
* Outside the router, with a client using its own message format, the minimum size
|
||||
* is 48, so any paddingSize <= 48 is a no-op.
|
||||
* is 48, so any paddingSize <= 48 is a no-op.
|
||||
*
|
||||
* Not included in the minimum is a 32-byte session tag for an existing session,
|
||||
* or a 514-byte ElGamal block and several 32-byte session tags for a new session.
|
||||
|
@ -862,7 +862,7 @@ public class GroupElement implements Serializable {
|
||||
* Constant time.
|
||||
* <p>
|
||||
* Preconditions: (TODO: Check this applies here)
|
||||
* a[31] <= 127
|
||||
* a[31] <= 127
|
||||
* @param a = a[0]+256*a[1]+...+256^31 a[31]
|
||||
* @return the GroupElement
|
||||
*/
|
||||
|
@ -116,7 +116,7 @@ public class Certificate extends DataStructureImpl {
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws IllegalArgumentException if type < 0
|
||||
* @throws IllegalArgumentException if type < 0
|
||||
*/
|
||||
public Certificate(int type, byte[] payload) {
|
||||
if (type < 0)
|
||||
@ -131,7 +131,7 @@ public class Certificate extends DataStructureImpl {
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws IllegalArgumentException if type < 0
|
||||
* @throws IllegalArgumentException if type < 0
|
||||
* @throws IllegalStateException if already set
|
||||
*/
|
||||
public void setCertificateType(int type) {
|
||||
|
@ -253,7 +253,7 @@ public class PrivateKeyFile {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param padding null OK, must be non-null if spubkey length < 128
|
||||
* @param padding null OK, must be non-null if spubkey length < 128
|
||||
* @throws IllegalArgumentException on mismatch of spubkey and spk types
|
||||
* @since 0.9.16
|
||||
*/
|
||||
|
@ -607,9 +607,9 @@ public class EepGet {
|
||||
/**
|
||||
* Blocking fetch.
|
||||
*
|
||||
* @param fetchHeaderTimeout <= 0 for none (proxy will timeout if none, none isn't recommended if no proxy)
|
||||
* @param totalTimeout <= 0 for default none
|
||||
* @param inactivityTimeout <= 0 for default 60 sec
|
||||
* @param fetchHeaderTimeout <= 0 for none (proxy will timeout if none, none isn't recommended if no proxy)
|
||||
* @param totalTimeout <= 0 for default none
|
||||
* @param inactivityTimeout <= 0 for default 60 sec
|
||||
*/
|
||||
public boolean fetch(long fetchHeaderTimeout, long totalTimeout, long inactivityTimeout) {
|
||||
_fetchHeaderTimeout = (int) Math.min(fetchHeaderTimeout, Integer.MAX_VALUE);
|
||||
|
Reference in New Issue
Block a user