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

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

Issue 2326813002: Replace and remove JavaException(s). (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_io.dart
diff --git a/pkg/analyzer/lib/src/generated/java_io.dart b/pkg/analyzer/lib/src/generated/java_io.dart
index 2e0deb192ebd323d57658569f345de5747f6aeb4..9b07d6dd6c38fb6edc868df31395f5ee4cad5dc5 100644
--- a/pkg/analyzer/lib/src/generated/java_io.dart
+++ b/pkg/analyzer/lib/src/generated/java_io.dart
@@ -6,7 +6,6 @@ library analyzer.src.generated.java_io;
import "dart:io";
-import 'package:analyzer/src/generated/java_core.dart' show JavaIOException;
import 'package:path/path.dart' as path;
class JavaFile {
@@ -51,11 +50,7 @@ class JavaFile {
JavaFile getCanonicalFile() => new JavaFile(getCanonicalPath());
String getCanonicalPath() {
- try {
- return _newFile().resolveSymbolicLinksSync();
- } catch (e) {
- throw new JavaIOException('IOException', e);
- }
+ return _newFile().resolveSymbolicLinksSync();
}
String getName() => pathContext.basename(_path);

Powered by Google App Engine
This is Rietveld 408576698