Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cunei committed Dec 21, 2017
1 parent 1536631 commit 77d3ba2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions io/src/main/scala/sbt/io/IO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ object IO {
* @see setModifiedTime
* @see copyModifiedTime
*/
@deprecated
@deprecated("This method might be removed in the future, also see getModifiedOrZero()", "1.1.3")
def getModifiedTime(file: File): Long = Milli.getModifiedTime(file)

/**
Expand All @@ -1165,7 +1165,8 @@ object IO {
* @see getModifiedTime
* @see copyModifiedTime
*/
@deprecated
@deprecated("This method might be removed in the future, also see setModifiedTimeOrFalse()",
"1.1.3")
def setModifiedTime(file: File, mtime: Long): Unit = Milli.setModifiedTime(file, mtime)

/**
Expand All @@ -1190,7 +1191,7 @@ object IO {
* @see getModifiedTime
* @see setModifiedTime
*/
@deprecated
@deprecated("This method might be removed in the future, also see copyLastModified()", "1.1.3")
def copyModifiedTime(fromFile: File, toFile: File): Unit =
Milli.copyModifiedTime(fromFile, toFile)

Expand Down
1 change: 0 additions & 1 deletion io/src/main/scala/sbt/io/Path.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import scala.collection.mutable
import java.nio.file.attribute._
import java.nio.file.{ Path => NioPath, LinkOption, FileSystem, Files }
import scala.collection.JavaConverters._
import sbt.io.IO

final class RichFile(val asFile: File) extends AnyVal with RichNioPath {
def /(component: String): File = if (component == ".") asFile else new File(asFile, component)
Expand Down
1 change: 0 additions & 1 deletion io/src/main/scala/sbt/io/PollingWatchService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import java.util.{ List => JList }
import sbt.io.syntax._
import scala.collection.mutable
import scala.concurrent.duration.{ Duration, FiniteDuration }
import sbt.io.IO

/** A `WatchService` that polls the filesystem every `delay`. */
class PollingWatchService(delay: FiniteDuration) extends WatchService {
Expand Down

0 comments on commit 77d3ba2

Please sign in to comment.