Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertySetter.java

Issue 10824045: Fix for issue 3915 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertySetter.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertySetter.java (revision 9937)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertySetter.java (working copy)
@@ -93,8 +93,8 @@
import com.google.dart.tools.core.DartCore;
/**
- * Instances of the class <code>PropertySetter</code> implement a visitor that sets the value of the
- * specified property for the node being visited.
+ * Instances of the class <code>PropertySetter</code> implement a visitor that sets the value of the specified
+ * property for the node being visited.
*/
public class PropertySetter extends PropertyVisitor {
/**
@@ -185,7 +185,7 @@
public Object visitCase(DartCase node) {
if (property == PropertyDescriptorHelper.DART_CASE_EXPRESSION) {
// node.setExpr(propertyValue);
- } else if (property == PropertyDescriptorHelper.DART_CASE_LABEL) {
+ } else if (property == PropertyDescriptorHelper.DART_CASE_LABELS) {
// node.setLabel(propertyValue);
} else if (property == PropertyDescriptorHelper.DART_CASE_STATEMENTS) {
// node.setStatements(propertyValue);
@@ -812,7 +812,7 @@
@Override
public Object visitSwitchMember(DartSwitchMember node) {
- if (property == PropertyDescriptorHelper.DART_SWITCH_MEMBER_LABEL) {
+ if (property == PropertyDescriptorHelper.DART_SWITCH_MEMBER_LABELS) {
// node.setLabel(propertyValue);
} else if (property == PropertyDescriptorHelper.DART_SWITCH_MEMBER_STATEMENTS) {
// node.setStatements(propertyValue);
@@ -1018,8 +1018,9 @@
propertyClass = ((SimplePropertyDescriptor) property).getValueType();
}
if (!propertyClass.isInstance(propertyValue)) {
- throw new RuntimeException("Value of class " + propertyValue.getClass().getName()
- + " cannot be assigned to a property of type " + propertyClass.getName());
+ throw new RuntimeException(
+ "Value of class " + propertyValue.getClass().getName()
+ + " cannot be assigned to a property of type " + propertyClass.getName());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698