Skip to content

Commit

Permalink
adjust to 2.13.6 restriction on narrowing access when overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed May 11, 2021
1 parent 85a492e commit 4fcccd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/src/main/scala/sbt/nio/file/Glob.scala
Expand Up @@ -903,11 +903,11 @@ object RelativeGlob {
override def hashCode: Int = glob.hashCode
}
private final class GlobMatcher(override val glob: String) extends SingleComponentMatcher {
private[this] val (prefix, pattern) = glob.indexOf(":") match {
private[this] val (prefixString, pattern) = glob.indexOf(":") match {
case -1 => ("glob", glob)
case i => (glob.substring(0, i), glob.substring(i + 1))
}
private[this] val matcher = FileSystems.getDefault.getPathMatcher(s"$prefix:$pattern")
private[this] val matcher = FileSystems.getDefault.getPathMatcher(s"$prefixString:$pattern")
override def matches(path: Path): Boolean = matcher.matches(path)
override def equals(o: Any): Boolean = o match {
case that: GlobMatcher => this.glob == that.glob
Expand Down

0 comments on commit 4fcccd4

Please sign in to comment.