Skip to content

Commit 63ff249

Browse files
committed
Support byte_array -> byte[] in Construct.GetPOJO()
1 parent 978a844 commit 63ff249

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/laytonsmith/core/constructs/Construct.java

+2
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ public static Object GetPOJO(Mixed c) throws ClassCastException {
419419
return Long.valueOf(((CInt) c).getInt());
420420
} else if(c instanceof CDouble) {
421421
return Double.valueOf(((CDouble) c).getDouble());
422+
} else if(c.isInstanceOf(CByteArray.TYPE)) {
423+
return ((CByteArray) c).asByteArrayCopy();
422424
} else if(c.isInstanceOf(CArray.TYPE)) {
423425
CArray ca = (CArray) c;
424426
if(ca.inAssociativeMode()) {

0 commit comments

Comments
 (0)