From 65d69efe9f464d306dfc5783bc891baee812ef48 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Wed, 20 Jan 2021 22:22:21 +0000 Subject: no longer need to use initCause git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1355 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java') diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java b/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java index 8e3802b..0ded048 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java @@ -423,10 +423,8 @@ class CalculatedColumnUtil buffer.put(intValBytes); } catch(ArithmeticException e) { - throw (IOException) - new IOException(withErrorContext( - "Numeric value '" + inValue + "' out of range")) - .initCause(e); + throw new IOException( + withErrorContext("Numeric value '" + inValue + "' out of range"), e); } } -- cgit v1.2.3