Skip to content

Commit

Permalink
Update Conversion.java to avoid conflict with #1139
Browse files Browse the repository at this point in the history
  • Loading branch information
LLM4IG authored Jan 16, 2024
1 parent 939b946 commit 798c080
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/apache/commons/lang3/Conversion.java
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,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 (nHex-1)*4+dstPos >= 8}
* @throws StringIndexOutOfBoundsException if {@code srcPos < 0 || srcPos + nHex >= src.length()}
* @throws StringIndexOutOfBoundsException if {@code srcPos < 0}
*/
public static byte hexToByte(final String src, final int srcPos, final byte dstInit, final int dstPos,
final int nHex) {
Expand Down Expand Up @@ -823,7 +823,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 < 0 || srcPos + nHex >= src.length()}
* @throws StringIndexOutOfBoundsException if {@code srcPos < 0}
*/
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 @@ -854,7 +854,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 < 0 || srcPos + nHex >= src.length()}
* @throws StringIndexOutOfBoundsException if {@code srcPos < 0}
*/
public static long hexToLong(final String src, final int srcPos, final long dstInit, final int dstPos,
final int nHex) {
Expand Down Expand Up @@ -886,7 +886,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 < 0 || srcPos + nHex >= src.length()}
* @throws StringIndexOutOfBoundsException if {@code srcPos < 0}
*/
public static short hexToShort(final String src, final int srcPos, final short dstInit, final int dstPos,
final int nHex) {
Expand Down

0 comments on commit 798c080

Please sign in to comment.