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

Unified Diff: pkg/analyzer/lib/src/generated/java_core.dart

Issue 2321263003: Remove parseUriWithException() and URISyntaxException. (Closed)
Patch Set: Created 4 years, 3 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: pkg/analyzer/lib/src/generated/java_core.dart
diff --git a/pkg/analyzer/lib/src/generated/java_core.dart b/pkg/analyzer/lib/src/generated/java_core.dart
index 074bb3ce675bf8faec50da7a7a8ddef1bc20028a..3988cf9b05eda3d4d70e38a51ca0e4fa8e10b2e2 100644
--- a/pkg/analyzer/lib/src/generated/java_core.dart
+++ b/pkg/analyzer/lib/src/generated/java_core.dart
@@ -39,20 +39,6 @@ String formatList(String pattern, List<Object> arguments) {
});
}
-/// Parses given string to [Uri], throws [URISyntaxException] if invalid.
-Uri parseUriWithException(String str) {
- Uri uri;
- try {
- uri = Uri.parse(str);
- } on FormatException catch (e) {
- throw new URISyntaxException(e.toString());
- }
- if (uri.path.isEmpty) {
- throw new URISyntaxException('empty path');
- }
- return uri;
-}
-
/**
* Very limited printf implementation, supports only %s and %d.
*/
@@ -226,9 +212,3 @@ abstract class PrintWriter {
this.newLine();
}
}
-
-class URISyntaxException implements Exception {
- final String message;
- URISyntaxException(this.message);
- String toString() => "URISyntaxException: $message";
-}

Powered by Google App Engine
This is Rietveld 408576698