javadoc fixes part 2 (ticket #1894)

This commit is contained in:
zzz
2017-01-26 20:45:58 +00:00
parent f77fc52ca7
commit 8bb114e9c4
7 changed files with 19 additions and 19 deletions

View File

@@ -736,7 +736,7 @@ public class DataHelper {
* @param src if null returns 0
* @param numBytes 1-8
* @return non-negative
* @throws AIOOBE
* @throws ArrayIndexOutOfBoundsException
* @throws IllegalArgumentException if negative (only possible if numBytes = 8)
*/
public static long fromLong(byte src[], int offset, int numBytes) {
@@ -760,7 +760,7 @@ public class DataHelper {
*
* @param numBytes 1-8
* @return non-negative
* @throws AIOOBE
* @throws ArrayIndexOutOfBoundsException
* @throws IllegalArgumentException if negative (only possible if numBytes = 8)
* @since 0.8.12
*/
@@ -1006,7 +1006,7 @@ public class DataHelper {
/**
* Helper util to compare two objects, including null handling.
* <p />
* <p>
*
* This treats (null == null) as true, and (null == (!null)) as false.
*/
@@ -1021,10 +1021,10 @@ public class DataHelper {
/**
* Run a deep comparison across the two collections.
* <p />
* <p>
*
* This treats (null == null) as true, (null == (!null)) as false, and then
* comparing each element via eq(object, object). <p />
* comparing each element via eq(object, object). <p>
*
* If the size of the collections are not equal, the comparison returns false.
* The collection order should be consistent, as this simply iterates across both and compares
@@ -1043,7 +1043,7 @@ public class DataHelper {
}
/**
* Run a comparison on the byte arrays, byte by byte. <p />
* Run a comparison on the byte arrays, byte by byte. <p>
*
* This treats (null == null) as true, (null == (!null)) as false,
* and unequal length arrays as false.

View File

@@ -47,7 +47,7 @@ public class Hash extends SimpleDataStructure {
/**
* Pull from cache or return new
* @throws AIOOBE if not enough bytes
* @throws ArrayIndexOutOfBoundsException if not enough bytes
* @since 0.8.3
*/
public static Hash create(byte[] data, int off) {

View File

@@ -29,7 +29,7 @@ public class PublicKey extends SimpleDataStructure {
* Pull from cache or return new.
* Deprecated - used only by deprecated Destination.readBytes(data, off)
*
* @throws AIOOBE if not enough bytes, FIXME should throw DataFormatException
* @throws ArrayIndexOutOfBoundsException if not enough bytes, FIXME should throw DataFormatException
* @since 0.8.3
*/
public static PublicKey create(byte[] data, int off) {

View File

@@ -155,8 +155,8 @@ public class SDSCache<V extends SimpleDataStructure> {
* @param off offset in the array to start reading from
* @return the cached value if available, otherwise
* makes a new object and returns it
* @throws AIOOBE if not enough bytes
* @throws NPE
* @throws ArrayIndexOutOfBoundsException if not enough bytes
* @throws NullPointerException
*/
public V get(byte[] b, int off) {
byte[] data = SimpleByteCache.acquire(_datalen);

View File

@@ -40,7 +40,7 @@ public class SigningPublicKey extends SimpleDataStructure {
* Pull from cache or return new.
* Deprecated - used only by deprecated Destination.readBytes(data, off)
*
* @throws AIOOBE if not enough bytes, FIXME should throw DataFormatException
* @throws ArrayIndexOutOfBoundsException if not enough bytes, FIXME should throw DataFormatException
* @since 0.8.3
*/
public static SigningPublicKey create(byte[] data, int off) {