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

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

Issue 2916303003: pkg/analyzer: Deprecate JavaSystemIO (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3c147bfc7fe71b840908718a8c501149911f8623..beec877f31f9a6129882a1a4c5a4758249e3dfed 100644
--- a/pkg/analyzer/lib/src/generated/java_io.dart
+++ b/pkg/analyzer/lib/src/generated/java_io.dart
@@ -110,6 +110,7 @@ class JavaFile {
File _newFile() => new File(_path);
}
+@Deprecated("Only used by `DirectoryBasedDartSdk`, which is also deprecated.")
class JavaSystemIO {
static Map<String, String> _properties = new Map();
static String getenv(String name) => Platform.environment[name];
@@ -151,6 +152,12 @@ class JavaSystemIO {
return null;
}
+ /// Only needed when when using `DirectoryBasedDartSdk`, which is also
+ /// deprecated.
+ ///
+ /// When using `FolderBasedDartSdk`, there is no need to set
+ /// `com.google.dart.sdk`.
+ @deprecated
static String setProperty(String name, String value) {
String oldValue = _properties[name];
_properties[name] = value;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698