summaryrefslogtreecommitdiffstats
path: root/documentapi
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-09-20 11:00:48 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2022-09-21 16:27:49 +0200
commit083aa54d59aecc9f9d045d4bde6cdb6c6cbe4dec (patch)
tree8c90676eb3e6cb01cf87d9ee40db4c60f14aad2c /documentapi
parentd9db475220d68a54ba2c9f820d3bae78f80abd96 (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-xdocumentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/GetDocumentReply.java3
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) {