diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-27 15:59:39 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-27 15:59:39 +0300 |
commit | cf1f89072dcd820248474a36cfc2f60e5f3f9a1b (patch) | |
tree | cbe0cde8462785ab04b46f62bb4a3d447f2c5c79 /theme-compiler/src/com/vaadin/sass/tree | |
parent | ed2d516f04fd156814cc43c55d36f567e2611ba2 (diff) | |
download | vaadin-framework-cf1f89072dcd820248474a36cfc2f60e5f3f9a1b.tar.gz vaadin-framework-cf1f89072dcd820248474a36cfc2f60e5f3f9a1b.zip |
Global code cleanup
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/tree')
3 files changed, 5 insertions, 6 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/tree/ListRemoveNode.java b/theme-compiler/src/com/vaadin/sass/tree/ListRemoveNode.java index 9c6400ec02..114e095a9c 100644 --- a/theme-compiler/src/com/vaadin/sass/tree/ListRemoveNode.java +++ b/theme-compiler/src/com/vaadin/sass/tree/ListRemoveNode.java @@ -42,7 +42,7 @@ public class ListRemoveNode extends Node implements ListModifyNode, VariableNode clone = (VariableNode) DeepCopy.copy(variableNode); LexicalUnitImpl first = null; - LexicalUnitImpl current = (LexicalUnitImpl) clone.getExpr(); + LexicalUnitImpl current = clone.getExpr(); LexicalUnitImpl lastAccepted = null; while (current != null) { @@ -60,7 +60,7 @@ public class ListRemoveNode extends Node implements ListModifyNode, first = lastAccepted; } } - current = (LexicalUnitImpl) current.getNextLexicalUnit(); + current = current.getNextLexicalUnit(); } clone.setExpr(first); diff --git a/theme-compiler/src/com/vaadin/sass/tree/VariableNode.java b/theme-compiler/src/com/vaadin/sass/tree/VariableNode.java index ffe6b77896..6f97fd6f2c 100644 --- a/theme-compiler/src/com/vaadin/sass/tree/VariableNode.java +++ b/theme-compiler/src/com/vaadin/sass/tree/VariableNode.java @@ -77,7 +77,7 @@ public class VariableNode extends Node implements IVariableNode { @Override public void replaceVariables(ArrayList<VariableNode> variables) { for (final VariableNode node : variables) { - if (!this.equals(node)) { + if (!equals(node)) { if (name.equals(node.getName())) { expr = (LexicalUnitImpl) DeepCopy.copy(node.getExpr()); diff --git a/theme-compiler/src/com/vaadin/sass/tree/controldirective/EachDefNode.java b/theme-compiler/src/com/vaadin/sass/tree/controldirective/EachDefNode.java index f75d5ed7b5..cb209273cb 100644 --- a/theme-compiler/src/com/vaadin/sass/tree/controldirective/EachDefNode.java +++ b/theme-compiler/src/com/vaadin/sass/tree/controldirective/EachDefNode.java @@ -67,7 +67,7 @@ public class EachDefNode extends Node implements IVariableNode { for (final VariableNode var : variables) { if (listVariable.equals(var.getName())) { - LexicalUnitImpl current = (LexicalUnitImpl) var.getExpr(); + LexicalUnitImpl current = var.getExpr(); list = new ArrayList<String>(); while (current != null) { @@ -75,8 +75,7 @@ public class EachDefNode extends Node implements IVariableNode { && current.getLexicalUnitType() != LexicalUnitImpl.SAC_OPERATOR_COMMA) { list.add(current.getValue().toString()); } - current = (LexicalUnitImpl) current - .getNextLexicalUnit(); + current = current.getNextLexicalUnit(); } listVariable = null; break; |