javadoc fixes part 14 (ticket #1894)

This commit is contained in:
zzz
2017-01-27 03:14:34 +00:00
parent 112fa503e6
commit e0e06d73eb
17 changed files with 19 additions and 21 deletions

View File

@ -48,7 +48,7 @@ public class BitField
* as set by the given byte array. This will make a copy of the array.
* Extra bytes will be ignored.
*
* @throws ArrayOutOfBoundsException if give byte array is not large
* @throws IndexOutOfBoundsException if give byte array is not large
* enough.
*/
public BitField(byte[] bitfield, int size)

View File

@ -161,7 +161,7 @@ class MagnetState {
/**
* @return true if this was the last piece
* @throws NPE, IllegalArgumentException, IOException, ...
* @throws NullPointerException IllegalArgumentException, IOException, ...
*/
public boolean saveChunk(int chunk, byte[] data, int off, int length) throws Exception {
if (!isInitialized)
@ -185,7 +185,7 @@ class MagnetState {
/**
* @return true if this was the last piece
* @throws NPE, IllegalArgumentException, IOException, ...
* @throws NullPointerException IllegalArgumentException, IOException, ...
*/
private MetaInfo buildMetaInfo() throws Exception {
// top map has nothing in it but the info map (no announce)

View File

@ -102,7 +102,7 @@ public class BDecoder
* @return The first BEValue on the stream or null when the stream
* has ended.
*
* @throws InvalidBEncoding when the stream doesn't start with a
* @throws InvalidBEncodingException when the stream doesn't start with a
* bencoded value or the stream isn't a bencoded stream at all.
* @throws IOException when somthing bad happens with the stream
* to read from.

View File

@ -77,7 +77,7 @@ class NodeInfo extends SimpleDataStructure {
* @param compactInfo 20 byte node ID, 32 byte destHash, 2 byte port
* @param offset starting at this offset in compactInfo
* @throws IllegalArgumentException
* @throws AIOOBE
* @throws ArrayIndexOutOfBoundsException
*/
public NodeInfo(byte[] compactInfo, int offset) {
super();