Index: mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java |
diff --git a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java |
index 80ed9d1f20e76b1ea562796bfe97503f33390a6c..b95b6dd40ea26f7e3afd1180f1e568a7155da96e 100644 |
--- a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java |
+++ b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java |
@@ -108,7 +108,7 @@ public class Decoder { |
private Decoder(Message message, Validator validator, int baseOffset) { |
mMessage = message; |
- mMessage.getData().order(ByteOrder.nativeOrder()); |
+ mMessage.getData().order(ByteOrder.LITTLE_ENDIAN); |
mBaseOffset = baseOffset; |
mValidator = validator; |
} |
@@ -615,8 +615,8 @@ public class Decoder { |
} |
if (expectedLength != BindingsHelper.UNSPECIFIED_ARRAY_LENGTH |
&& dataHeader.numFields != expectedLength) { |
- throw new DeserializationException("Incorrect array length. Expected: " + |
- expectedLength + ", but got: " + dataHeader.numFields + "."); |
+ throw new DeserializationException("Incorrect array length. Expected: " |
+ + expectedLength + ", but got: " + dataHeader.numFields + "."); |
} |
return dataHeader; |
} |
@@ -631,8 +631,8 @@ public class Decoder { |
} |
if (expectedLength != BindingsHelper.UNSPECIFIED_ARRAY_LENGTH |
&& dataHeader.numFields != expectedLength) { |
- throw new DeserializationException("Incorrect array length. Expected: " + |
- expectedLength + ", but got: " + dataHeader.numFields + "."); |
+ throw new DeserializationException("Incorrect array length. Expected: " |
+ + expectedLength + ", but got: " + dataHeader.numFields + "."); |
} |
return dataHeader; |
} |