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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java

Issue 22339023: Fix for issue 11497- liberalize warnings about bad overrides (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks to the status files Created 7 years, 4 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
index 2f86f3c211dbf50f96c68860512e1da1f13f6f99..f84a33bfa2083ccd714ca2b66519975596c4e889 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
@@ -631,39 +631,6 @@ public enum CompileTimeErrorCode implements ErrorCode {
INVALID_FACTORY_NAME_NOT_A_CLASS("The name of the immediately enclosing class expected"),
/**
- * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m1</i> overrides an
- * instance member <i>m2</i> and <i>m1</i> does not declare all the named parameters declared by
- * <i>m2</i>.
- *
- * @param paramCount the number of named parameters in the overridden member
- * @param className the name of the class from the overridden method
- */
- INVALID_OVERRIDE_NAMED(
- "Missing the named parameter '%s' to match the overridden method from '%s'"),
-
- /**
- * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m1</i> overrides an
- * instance member <i>m2</i> and <i>m1</i> has fewer optional positional parameters than
- * <i>m2</i>.
- *
- * @param paramCount the number of positional parameters in the overridden member
- * @param className the name of the class from the overridden method
- */
- INVALID_OVERRIDE_POSITIONAL(
- "Must have at least %d optional parameters to match the overridden method from '%s'"),
-
- /**
- * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m1</i> overrides an
- * instance member <i>m2</i> and <i>m1</i> has a different number of required parameters than
- * <i>m2</i>.
- *
- * @param paramCount the number of required parameters in the overridden member
- * @param className the name of the class from the overridden method
- */
- INVALID_OVERRIDE_REQUIRED(
- "Must have exactly %d required parameters to match the overridden method from '%s'"),
-
- /**
* 12.10 This: It is a compile-time error if this appears in a top-level function or variable
* initializer, in a factory constructor, or in a static method or variable initializer, or in the
* initializer of an instance variable.
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698