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

Unified Diff: pkg/analyzer/test/generated/utilities_test.dart

Issue 1026093002: Fix hints in the analyzer package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/reflective_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/utilities_test.dart
diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart
index fec07430fbe06411cf67d7cb08645330fbe8be2a..d6a6ac511ea1c43a5ee12862b47e669d3073e0b4 100644
--- a/pkg/analyzer/test/generated/utilities_test.dart
+++ b/pkg/analyzer/test/generated/utilities_test.dart
@@ -1589,7 +1589,7 @@ class BooleanArrayTest {
try {
BooleanArray.get(0, -1);
fail("Expected ");
- } on RangeError catch (exception) {
+ } on RangeError {
// Expected
}
}
@@ -1598,7 +1598,7 @@ class BooleanArrayTest {
try {
BooleanArray.get(0, 31);
fail("Expected ");
- } on RangeError catch (exception) {
+ } on RangeError {
// Expected
}
}
@@ -1614,7 +1614,7 @@ class BooleanArrayTest {
try {
BooleanArray.set(0, -1, true);
fail("Expected ");
- } on RangeError catch (exception) {
+ } on RangeError {
// Expected
}
}
@@ -1623,7 +1623,7 @@ class BooleanArrayTest {
try {
BooleanArray.set(0, 32, true);
fail("Expected ");
- } on RangeError catch (exception) {
+ } on RangeError {
// Expected
}
}
@@ -1771,7 +1771,7 @@ class DirectedGraphTest extends EngineTestCase {
try {
graph.findCycleContaining(null);
fail("Expected IllegalArgumentException");
- } on IllegalArgumentException catch (exception) {
+ } on IllegalArgumentException {
// Expected
}
}
@@ -2790,7 +2790,7 @@ class LineInfoTest {
try {
new LineInfo(<int>[]);
fail("Expected IllegalArgumentException");
- } on IllegalArgumentException catch (exception) {
+ } on IllegalArgumentException {
// Expected
}
}
@@ -2799,7 +2799,7 @@ class LineInfoTest {
try {
new LineInfo(null);
fail("Expected IllegalArgumentException");
- } on IllegalArgumentException catch (exception) {
+ } on IllegalArgumentException {
// Expected
}
}
@@ -3194,19 +3194,19 @@ class MultipleMapIteratorTest extends EngineTestCase {
try {
iterator.key;
fail("Expected NoSuchElementException");
- } on NoSuchElementException catch (exception) {
+ } on NoSuchElementException {
// Expected
}
try {
iterator.value;
fail("Expected NoSuchElementException");
- } on NoSuchElementException catch (exception) {
+ } on NoSuchElementException {
// Expected
}
try {
iterator.value = "x";
fail("Expected NoSuchElementException");
- } on NoSuchElementException catch (exception) {
+ } on NoSuchElementException {
// Expected
}
}
@@ -4151,19 +4151,19 @@ class SingleMapIteratorTest extends EngineTestCase {
try {
iterator.key;
fail("Expected NoSuchElementException");
- } on NoSuchElementException catch (exception) {
+ } on NoSuchElementException {
// Expected
}
try {
iterator.value;
fail("Expected NoSuchElementException");
- } on NoSuchElementException catch (exception) {
+ } on NoSuchElementException {
// Expected
}
try {
iterator.value = "x";
fail("Expected NoSuchElementException");
- } on NoSuchElementException catch (exception) {
+ } on NoSuchElementException {
// Expected
}
expect(iterator.moveNext(), isFalse);
@@ -4446,7 +4446,7 @@ class StringUtilitiesTest {
try {
StringUtilities.printListOfQuotedNames(new List<String>(0));
fail("Expected IllegalArgumentException");
- } on IllegalArgumentException catch (exception) {
+ } on IllegalArgumentException {
// Expected
}
}
@@ -4461,7 +4461,7 @@ class StringUtilitiesTest {
try {
StringUtilities.printListOfQuotedNames(null);
fail("Expected IllegalArgumentException");
- } on IllegalArgumentException catch (exception) {
+ } on IllegalArgumentException {
// Expected
}
}
@@ -4470,7 +4470,7 @@ class StringUtilitiesTest {
try {
StringUtilities.printListOfQuotedNames(<String>["a"]);
fail("Expected IllegalArgumentException");
- } on IllegalArgumentException catch (exception) {
+ } on IllegalArgumentException {
// Expected
}
}
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/reflective_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698