javadoc fixes part 7 (ticket #1894)

This commit is contained in:
zzz
2017-01-26 21:55:04 +00:00
parent d196047382
commit b970912cc1
10 changed files with 16 additions and 16 deletions

View File

@ -336,7 +336,7 @@ import java.text.MessageFormat;
* break; * break;
* } * }
* // * //
* for (int i = g.getOptind(); i < argv.length ; i++) * for (int i = g.getOptind(); i &lt; argv.length ; i++)
* System.out.println("Non option argv element: " + argv[i] + "\n"); * System.out.println("Non option argv element: " + argv[i] + "\n");
* </pre> * </pre>
* <p> * <p>

View File

@ -534,7 +534,7 @@ public abstract class NamingService {
* See also lookup(Hash, int). * See also lookup(Hash, int).
* *
* @param hostname must be {52 chars}.b32.i2p * @param hostname must be {52 chars}.b32.i2p
* @param timeout in seconds; <= 0 means use router default * @param timeout in seconds; &lt;= 0 means use router default
* @return dest or null * @return dest or null
* @since 0.8.7 * @since 0.8.7
*/ */
@ -546,7 +546,7 @@ public abstract class NamingService {
* Same as lookupBase32() but with the SHA256 Hash precalculated * Same as lookupBase32() but with the SHA256 Hash precalculated
* This implementation returns null. * This implementation returns null.
* *
* @param timeout in seconds; <= 0 means use router default * @param timeout in seconds; &lt;= 0 means use router default
* @return dest or null * @return dest or null
* @since 0.8.7 * @since 0.8.7
*/ */

View File

@ -429,11 +429,11 @@ public final class ElGamalAESEngine {
* *
* In the router, we always use garlic messages. A garlic message with a single * 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 * 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 * &lt;= 128 is a no-op as every message will be at least 128 bytes
* (Streaming, if used, adds more overhead). * (Streaming, if used, adds more overhead).
* *
* Outside the router, with a client using its own message format, the minimum size * 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 &lt;= 48 is a no-op.
* *
* Not included in the minimum is a 32-byte session tag for an existing session, * 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. * or a 514-byte ElGamal block and several 32-byte session tags for a new session.

View File

@ -862,7 +862,7 @@ public class GroupElement implements Serializable {
* Constant time. * Constant time.
* <p> * <p>
* Preconditions: (TODO: Check this applies here) * Preconditions: (TODO: Check this applies here)
* a[31] <= 127 * a[31] &lt;= 127
* @param a = a[0]+256*a[1]+...+256^31 a[31] * @param a = a[0]+256*a[1]+...+256^31 a[31]
* @return the GroupElement * @return the GroupElement
*/ */

View File

@ -116,7 +116,7 @@ public class Certificate extends DataStructureImpl {
} }
/** /**
* @throws IllegalArgumentException if type < 0 * @throws IllegalArgumentException if type &lt; 0
*/ */
public Certificate(int type, byte[] payload) { public Certificate(int type, byte[] payload) {
if (type < 0) if (type < 0)
@ -131,7 +131,7 @@ public class Certificate extends DataStructureImpl {
} }
/** /**
* @throws IllegalArgumentException if type < 0 * @throws IllegalArgumentException if type &lt; 0
* @throws IllegalStateException if already set * @throws IllegalStateException if already set
*/ */
public void setCertificateType(int type) { public void setCertificateType(int type) {

View File

@ -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 &lt; 128
* @throws IllegalArgumentException on mismatch of spubkey and spk types * @throws IllegalArgumentException on mismatch of spubkey and spk types
* @since 0.9.16 * @since 0.9.16
*/ */

View File

@ -607,9 +607,9 @@ public class EepGet {
/** /**
* Blocking fetch. * Blocking fetch.
* *
* @param fetchHeaderTimeout <= 0 for none (proxy will timeout if none, none isn't recommended if no proxy) * @param fetchHeaderTimeout &lt;= 0 for none (proxy will timeout if none, none isn't recommended if no proxy)
* @param totalTimeout <= 0 for default none * @param totalTimeout &lt;= 0 for default none
* @param inactivityTimeout <= 0 for default 60 sec * @param inactivityTimeout &lt;= 0 for default 60 sec
*/ */
public boolean fetch(long fetchHeaderTimeout, long totalTimeout, long inactivityTimeout) { public boolean fetch(long fetchHeaderTimeout, long totalTimeout, long inactivityTimeout) {
_fetchHeaderTimeout = (int) Math.min(fetchHeaderTimeout, Integer.MAX_VALUE); _fetchHeaderTimeout = (int) Math.min(fetchHeaderTimeout, Integer.MAX_VALUE);

View File

@ -73,7 +73,7 @@ public abstract class FastI2NPMessageImpl extends I2NPMessageImpl {
* Ignore, but save, the checksum, to be used later if necessary. * Ignore, but save, the checksum, to be used later if necessary.
* *
* @param maxLen read no more than this many bytes from data starting at offset, even if it is longer * @param maxLen read no more than this many bytes from data starting at offset, even if it is longer
* This includes the type byte only if type < 0 * This includes the type byte only if type &lt; 0
* @throws IllegalStateException if called twice, to protect saved checksum * @throws IllegalStateException if called twice, to protect saved checksum
*/ */
@Override @Override

View File

@ -189,7 +189,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
* we can use a large buffer but prevent the reader from reading off the end. * we can use a large buffer but prevent the reader from reading off the end.
* *
* @param maxLen read no more than this many bytes from data starting at offset, even if it is longer * @param maxLen read no more than this many bytes from data starting at offset, even if it is longer
* This includes the type byte only if type < 0 * This includes the type byte only if type &lt; 0
* @since 0.8.12 * @since 0.8.12
*/ */
public int readBytes(byte data[], int type, int offset, int maxLen) throws I2NPMessageException { public int readBytes(byte data[], int type, int offset, int maxLen) throws I2NPMessageException {

View File

@ -19,8 +19,8 @@ abstract class ThreadDump {
* It waits for the signal to complete (which should be fast) * It waits for the signal to complete (which should be fast)
* but does not wait for the dump itself. * but does not wait for the dump itself.
* *
* @param secondsToWait if <= 0, don't wait * @param secondsToWait if &lt;= 0, don't wait
* @return success, false if windows or no wrapper, true if secondsToWait <= 0, * @return success, false if windows or no wrapper, true if secondsToWait &lt;= 0,
false if timed out, dump result otherwise false if timed out, dump result otherwise
*/ */
public static boolean dump(I2PAppContext context, int secondsToWait) { public static boolean dump(I2PAppContext context, int secondsToWait) {