diff --git a/java/fury-core/src/main/java/org/apache/fury/Fury.java b/java/fury-core/src/main/java/org/apache/fury/Fury.java index 787d47beae..e10e989ab0 100644 --- a/java/fury-core/src/main/java/org/apache/fury/Fury.java +++ b/java/fury-core/src/main/java/org/apache/fury/Fury.java @@ -761,8 +761,9 @@ public Object deserialize(MemoryBuffer buffer, Iterable outOfBandB if ((bitmap & isNilFlag) == isNilFlag) { return null; } - boolean isLittleEndian = (bitmap & isLittleEndianFlag) == isLittleEndianFlag; - Preconditions.checkArgument(Fury.isLittleEndian, isLittleEndian); + Preconditions.checkArgument( + Fury.isLittleEndian, + "Non-Little-Endian format detected. Only Little-Endian is supported."); boolean isTargetXLang = (bitmap & isCrossLanguageFlag) == isCrossLanguageFlag; if (isTargetXLang) { peerLanguage = Language.values()[buffer.readByte()];