Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LANG-1720: Fix Javadoc description of exceptions thrown for Conversion class #1139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/org/apache/commons/lang3/Conversion.java
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ public static int hexDigitToInt(final char hexDigit) {
* @param nHex the number of Chars to convert
* @return a byte containing the selected bits
* @throws IllegalArgumentException if {@code (nHexs-1)*4+dstPos >= 8}
* @throws StringIndexOutOfBoundsException if {@code srcPos + nHex > src.length}
*/
public static byte hexToByte(final String src, final int srcPos, final byte dstInit, final int dstPos,
final int nHex) {
Expand Down Expand Up @@ -819,6 +820,7 @@ public static byte hexToByte(final String src, final int srcPos, final byte dstI
* @param nHex the number of Chars to convert
* @return an int containing the selected bits
* @throws IllegalArgumentException if {@code (nHexs-1)*4+dstPos >= 32}
* @throws StringIndexOutOfBoundsException if {@code srcPos + nHex > src.length}
*/
public static int hexToInt(final String src, final int srcPos, final int dstInit, final int dstPos, final int nHex) {
if (0 == nHex) {
Expand Down Expand Up @@ -849,6 +851,7 @@ public static int hexToInt(final String src, final int srcPos, final int dstInit
* @param nHex the number of Chars to convert
* @return a long containing the selected bits
* @throws IllegalArgumentException if {@code (nHexs-1)*4+dstPos >= 64}
* @throws StringIndexOutOfBoundsException if {@code srcPos + nHex > src.length}
*/
public static long hexToLong(final String src, final int srcPos, final long dstInit, final int dstPos,
final int nHex) {
Expand Down Expand Up @@ -880,6 +883,7 @@ public static long hexToLong(final String src, final int srcPos, final long dstI
* @param nHex the number of Chars to convert
* @return a short containing the selected bits
* @throws IllegalArgumentException if {@code (nHexs-1)*4+dstPos >= 16}
* @throws StringIndexOutOfBoundsException if {@code srcPos + nHex > src.length}
*/
public static short hexToShort(final String src, final int srcPos, final short dstInit, final int dstPos,
final int nHex) {
Expand Down