From 89cfe4fed85e5ec05da4858bc738d612e78f4779 Mon Sep 17 00:00:00 2001 From: Danny van Bruggen Date: Sun, 22 Jul 2018 12:32:33 +0200 Subject: [PATCH] Fix warning --- .../java/com/github/javaparser/ast/body/VariableDeclarator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java index 0d342ac58a..f7cba3f63d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java @@ -117,7 +117,7 @@ public void propertyChange(Node observedNode, ObservableProperty property, Objec if (property == ObservableProperty.TYPE) { VariableDeclarator vd = VariableDeclarator.this; if (vd.getParentNode().isPresent() && vd.getParentNode().get() instanceof NodeWithVariables) { - NodeWithVariables nodeWithVariables = (NodeWithVariables) vd.getParentNode().get(); + NodeWithVariables nodeWithVariables = (NodeWithVariables) vd.getParentNode().get(); // We calculate the value the property will assume after the change will be completed Optional currentMaxCommonType = nodeWithVariables.getMaximumCommonType(); List types = new LinkedList<>();