summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-11-01 14:25:04 +0000
committerTor Egge <Tor.Egge@oath.com>2018-11-01 14:25:04 +0000
commit21b7cb7b0685ec04cfdb03e7f3793d1ca6dbe190 (patch)
tree8b3965bd9e98f9097c9501efaf6799335918437d /document
parenta561a101ecd0373ab6a8df6cd801dba195b86eaa (diff)
Fixup local variable name.
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/select/rule/DocumentNode.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/document/src/main/java/com/yahoo/document/select/rule/DocumentNode.java b/document/src/main/java/com/yahoo/document/select/rule/DocumentNode.java
index 549d38958e6..c0907693dab 100644
--- a/document/src/main/java/com/yahoo/document/select/rule/DocumentNode.java
+++ b/document/src/main/java/com/yahoo/document/select/rule/DocumentNode.java
@@ -47,8 +47,8 @@ public class DocumentNode implements ExpressionNode {
DocumentRemove removeOp = (DocumentRemove)op;
return (removeOp.getId().getDocType().equals(type) ? op : Boolean.FALSE);
} else if (op instanceof DocumentGet) {
- DocumentGet removeOp = (DocumentGet)op;
- return (removeOp.getId().getDocType().equals(type) ? op : Boolean.FALSE);
+ DocumentGet getOp = (DocumentGet)op;
+ return (getOp.getId().getDocType().equals(type) ? op : Boolean.FALSE);
} else {
throw new IllegalStateException("Document class '" + op.getClass().getName() + "' is not supported.");
}