| OLD | NEW |
| 1 library java.engine.io; | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library analyzer.src.generated.java_engine_io; |
| 2 | 6 |
| 3 import "dart:io"; | 7 import "dart:io"; |
| 4 import "java_io.dart"; | |
| 5 | 8 |
| 6 class OSUtilities { | 9 import "package:analyzer/src/generated/java_io.dart"; |
| 7 static String LINE_SEPARATOR = isWindows() ? '\r\n' : '\n'; | |
| 8 static bool isWindows() => Platform.operatingSystem == 'windows'; | |
| 9 static bool isMac() => Platform.operatingSystem == 'macos'; | |
| 10 } | |
| 11 | 10 |
| 12 class FileUtilities2 { | 11 class FileUtilities2 { |
| 13 static JavaFile createFile(String path) { | 12 static JavaFile createFile(String path) { |
| 14 return new JavaFile(path).getAbsoluteFile(); | 13 return new JavaFile(path).getAbsoluteFile(); |
| 15 } | 14 } |
| 16 } | 15 } |
| 16 |
| 17 class OSUtilities { |
| 18 static String LINE_SEPARATOR = isWindows() ? '\r\n' : '\n'; |
| 19 static bool isMac() => Platform.operatingSystem == 'macos'; |
| 20 static bool isWindows() => Platform.operatingSystem == 'windows'; |
| 21 } |
| OLD | NEW |