Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ lazy val xml = crossProject.in(file("."))
version := "1.0.7-SNAPSHOT",
scalacOptions ++= "-deprecation:false -feature -Xlint:-stars-align,-nullary-unit,_".split("\\s+").to[Seq],
scalacOptions in Test += "-Xxml:coalescing",
apiMappings += (
apiMappings ++= Map(
scalaInstance.value.libraryJar
-> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")
-> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/"),
// http://stackoverflow.com/questions/16934488
file(System.getProperty("sun.boot.class.path").split(java.io.File.pathSeparator).filter(_.endsWith(java.io.File.separator + "rt.jar")).head)
-> url("http://docs.oracle.com/javase/8/docs/api")
)
)
.jvmSettings(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object EncodingHeuristics {
* [[http://www.w3.org/TR/xml/#sec-guessing w3]].
*
* @param in `InputStream` to read from.
* @throws IOException if the stream cannot be reset
* @throws java.io.IOException if the stream cannot be reset
* @return the name of the encoding.
*/
def readEncodingFromStream(in: InputStream): String = {
Expand Down