@@ -44,13 +44,13 @@ internal class File(dirPath: String? = null, name: String) {
4444 * This field is initialized from the system property "file.separator".
4545 * Later changes to that property will have no effect on this field or this class.
4646 */
47- var separatorChar: Char = ' /'
47+ const val separatorChar: Char = ' /'
4848
4949 /* *
5050 * The system-dependent string used to separate components in filenames ('/').
5151 * See [.separatorChar].
5252 */
53- var separator: String = " /"
53+ const val separator: String = " /"
5454
5555 /* *
5656 * The system-dependent character used to separate components in search paths (':').
@@ -61,21 +61,15 @@ internal class File(dirPath: String? = null, name: String) {
6161 * This field is initialized from the system property "path.separator".
6262 * Later changes to that property will have no effect on this field or this class.
6363 */
64- var pathSeparatorChar: Char = ' :'
64+ const val pathSeparatorChar: Char = ' :'
6565
6666 /* *
6767 * The system-dependent string used to separate components in search paths (":").
6868 * See [.pathSeparatorChar].
6969 */
70- var pathSeparator: String = " :"
70+ const val pathSeparator: String = " :"
7171
72- private var caseSensitive: Boolean = true
73-
74- // separatorChar = System.getProperty("file.separator", "/").charAt(0);
75- // pathSeparatorChar = System.getProperty("path.separator", ":").charAt(0);
76- // separator = String.valueOf(separatorChar);
77- // pathSeparator = String.valueOf(pathSeparatorChar);
78- // caseSensitive = isCaseSensitiveImpl();
72+ private const val caseSensitive: Boolean = true
7973 }
8074
8175 /* *
0 commit comments