Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1305)

Unified Diff: mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java

Issue 728133002: Update mojo sdk to rev e01f9a49449381a5eb430c1fd88bf2cae73ec35a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + ios gyp fixes Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « mojo/public/go/system/impl/mojo_types.go ('k') | mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698