Skip to content

Commit

Permalink
Add NumberFormatException to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian S. committed Jun 14, 2020
1 parent 8f6d09a commit d3e0f59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/csdev/ebus/utils/EBusUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public static byte[] toByteArray(ByteBuffer buffer) {
* @param hexDumpString
* @return
*/
static public byte[] toByteArray(String hexDumpString) {
static public byte[] toByteArray(String hexDumpString) throws NumberFormatException {
if (StringUtils.isEmpty(hexDumpString)) {
return new byte[0];
}
Expand All @@ -288,7 +288,8 @@ static public byte[] toByteArray(String hexDumpString) {
* @param hexDumpString
* @return
*/
static public byte[] toByteArray2(String hexDumpString) {
static public byte[] toByteArray2(String hexDumpString) throws NumberFormatException {

if (StringUtils.isEmpty(hexDumpString)) {
return new byte[0];
}
Expand Down

0 comments on commit d3e0f59

Please sign in to comment.