Skip to content

Commit ca8afa0

Browse files
brianquinlanCommit Queue
authored and
Commit Queue
committed
Make Platform abstract
Bug:#52444 Change-Id: Ia4f98162f2b60d23c27ed9d8f78f70d308785650 CoreLibraryReviewExempt: landing previously-approved change Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379740 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Brian Quinlan <[email protected]>
1 parent 1b1740e commit ca8afa0

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212

1313
### Libraries
1414

15+
#### `dart:io`
16+
17+
- **Breaking Change** [#52444][]: Removed the `Platform()` constructor, which
18+
has been deprecated since Dart 3.1.
19+
20+
[#52444]: https://github.com/dart-lang/sdk/issues/52444
21+
1522
#### `dart:js_interop`
1623

1724
- Added constructors for `JSArrayBuffer`, `JSDataView`, and concrete typed array

sdk/lib/io/platform.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ part of dart.io;
5858
/// }
5959
/// }
6060
/// ```
61-
final class Platform {
61+
abstract final class Platform {
6262
/// The number of individual execution units of the machine.
6363
static final numberOfProcessors = _Platform.numberOfProcessors;
6464

@@ -243,8 +243,4 @@ final class Platform {
243243
/// `"\r\n"`
244244
@pragma("vm:platform-const")
245245
static String get lineTerminator => isWindows ? '\r\n' : '\n';
246-
247-
@Deprecated("Do not instantiate this class, it will become abstract in a "
248-
"future Dart version")
249-
Platform();
250246
}

0 commit comments

Comments
 (0)