diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-09-20 11:00:48 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-09-20 11:00:48 +0200 |
commit | 5f7ed1a2e9e107c98fc022d1be5a5f3df9a3106a (patch) | |
tree | edc398a6c5999250d153f6a3c62e22677a5e70e8 /documentapi | |
parent | cd0739cd15b3b841ebaa4c2e54d98db7e9328dbe (diff) |
Short circuit boolean expressions
Short circuit boolean expressions by converting them
to (nested) if expressions. This also fixes a bug in
Java expression evaluation where evaluation of arithmetic
operations with the same precedence would be from right
to left rather than left to right.
Diffstat (limited to 'documentapi')
-rwxr-xr-x | documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/GetDocumentReply.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/GetDocumentReply.java b/documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/GetDocumentReply.java index 2f2d90f2052..4613dfc472d 100755 --- a/documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/GetDocumentReply.java +++ b/documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/GetDocumentReply.java @@ -25,7 +25,8 @@ public class GetDocumentReply extends DocumentAcceptedReply { /** * Constructs a new reply to lazily deserialize from a byte buffer. - * @param decoder The decoder to use for deserialization. + * + * @param decoder The decoder to use for deserialization. * @param buf A byte buffer that contains a serialized reply. */ GetDocumentReply(LazyDecoder decoder, DocumentDeserializer buf) { |