Skip to content

Commit

Permalink
Support byte_array -> byte[] in Construct.GetPOJO()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter12345 committed Jan 11, 2025
1 parent 978a844 commit 63ff249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/laytonsmith/core/constructs/Construct.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ public static Object GetPOJO(Mixed c) throws ClassCastException {
return Long.valueOf(((CInt) c).getInt());
} else if(c instanceof CDouble) {
return Double.valueOf(((CDouble) c).getDouble());
} else if(c.isInstanceOf(CByteArray.TYPE)) {
return ((CByteArray) c).asByteArrayCopy();
} else if(c.isInstanceOf(CArray.TYPE)) {
CArray ca = (CArray) c;
if(ca.inAssociativeMode()) {
Expand Down

0 comments on commit 63ff249

Please sign in to comment.