File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ object Source {
132
132
/** same as fromURL(new URL(s))
133
133
*/
134
134
def fromURL (s : String )(implicit codec : Codec ): BufferedSource =
135
- fromURL(new URL (s))(codec)
135
+ fromURL(new URI (s).toURL )(codec)
136
136
137
137
/** same as fromInputStream(url.openStream())(Codec(enc))
138
138
*/
Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ object Using {
226
226
}
227
227
228
228
private def preferentiallySuppress (primary : Throwable , secondary : Throwable ): Throwable = {
229
+ @ annotation.nowarn(" cat=deprecation" ) // avoid warning on mention of ThreadDeath
229
230
def score (t : Throwable ): Int = t match {
230
231
case _ : VirtualMachineError => 4
231
232
case _ : LinkageError => 3
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ object NonFatal {
36
36
/**
37
37
* Returns true if the provided `Throwable` is to be considered non-fatal, or false if it is to be considered fatal
38
38
*/
39
+ @ annotation.nowarn(" cat=deprecation" ) // avoid warning on mention of ThreadDeath
39
40
def apply (t : Throwable ): Boolean = t match {
40
41
// VirtualMachineError includes OutOfMemoryError and other fatal errors
41
42
case _ : VirtualMachineError | _ : ThreadDeath | _ : InterruptedException | _ : LinkageError | _ : ControlThrowable => false
You can’t perform that action at this time.
0 commit comments