File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Clojure/Clojure.Source/clojure/clr Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 13
13
clojure.clr.io
14
14
(:import
15
15
(System.IO
16
- Stream BufferedStream
16
+ Stream
17
17
FileInfo FileStream MemoryStream
18
18
FileMode FileShare FileAccess FileOptions
19
19
BinaryReader BinaryWriter
39
39
(as-uri [_] nil )
40
40
41
41
String
42
- (as-file [s] (FileInfo. s))
43
- (as-uri [s] (Uri. s))
42
+ (as-file [^String s] (FileInfo. s))
43
+ (as-uri [^String s] (Uri. s))
44
44
45
45
FileInfo
46
- (as-file [f] f)
47
- (as-uri [f] (Uri. (str " file://" (.FullName f))))
46
+ (as-file [^FileInfo f] f)
47
+ (as-uri [^FileInfo f] (Uri. (str " file://" (.FullName f))))
48
48
49
49
Uri
50
- (as-uri [u] u)
51
- (as-file [u]
50
+ (as-uri [^Uri u] u)
51
+ (as-file [^Uri u]
52
52
(if (.IsFile u)
53
53
(as-file (.LocalPath u))
54
54
(throw (ArgumentException. (str " Not a file: " u))))))
You can’t perform that action at this time.
0 commit comments