Skip to content

Commit

Permalink
(improvements) add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
ake2l committed Jan 22, 2024
1 parent 8f5ecd2 commit 5b17464
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

package com.rapiddweller.benerator.script;

import com.rapiddweller.common.ConversionException;
Expand Down Expand Up @@ -64,6 +65,12 @@ private static Object value2JavaConverter(Value value, Map<Value, Object> refere
result = value.asInt();
} else if (value.fitsInLong()) {
result = handleLongValue(value);
} else if (value.fitsInFloat()) {
return value.asFloat();
} else if (value.fitsInByte()) {
return value.asByte();
} else if (value.fitsInDouble()) {
return value.asDouble();
} else if (value.hasArrayElements()) {
result = getArrayFromValue(value, referenceMap, depth);
} else if (value.isString()) {
Expand Down

0 comments on commit 5b17464

Please sign in to comment.