Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
matozoid committed Jul 22, 2018
1 parent 4dcb5a2 commit 89cfe4f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -117,7 +117,7 @@ public void propertyChange(Node observedNode, ObservableProperty property, Objec
if (property == ObservableProperty.TYPE) { if (property == ObservableProperty.TYPE) {
VariableDeclarator vd = VariableDeclarator.this; VariableDeclarator vd = VariableDeclarator.this;
if (vd.getParentNode().isPresent() && vd.getParentNode().get() instanceof NodeWithVariables) { 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 // We calculate the value the property will assume after the change will be completed
Optional<Type> currentMaxCommonType = nodeWithVariables.getMaximumCommonType(); Optional<Type> currentMaxCommonType = nodeWithVariables.getMaximumCommonType();
List<Type> types = new LinkedList<>(); List<Type> types = new LinkedList<>();
Expand Down

0 comments on commit 89cfe4f

Please sign in to comment.