diff --git a/docs/developers/symbol-information.html b/docs/developers/symbol-information.html index a3cd0bee4..8dbd8f840 100644 --- a/docs/developers/symbol-information.html +++ b/docs/developers/symbol-information.html @@ -327,42 +327,42 @@

Symbol("scala/Some#")).take(5) // res29: Set[SymbolInformation] = HashSet( -// scala/AnyRef#eq(). => final method eq(that: AnyRef): Boolean, -// scala/Any#`##`(). => final method ##(): Int, -// scala/Any#`==`(). => final method ==(that: Any): Boolean, -// scala/Option#unzip3(). => final method unzip3[A1, A2, A3](implicit asTriple: <:<[A, Tuple3[A1, A2, A3]]): Tuple3[Option[A1], Option[A2], Option[A3]], -// scala/Any#`##`(). => final method ##(): Int +// scala/Option#knownSize(). => final method knownSize: Int, +// scala/Any#`!=`(). => final method !=(that: Any): Boolean, +// scala/Any#`!=`(). => final method !=(that: Any): Boolean, +// scala/Some#canEqual(). => method canEqual(x$1: Any): Boolean, +// scala/Equals#equals(). => abstract method equals(that: Any): Boolean // ) getClassMethods(Symbol("java/lang/String#")).take(5) // res30: Set[SymbolInformation] = HashSet( -// java/lang/String#equals(). => method equals(param0: Object): Boolean, -// java/lang/String#checkBoundsBeginEnd(). => private[lang] static method checkBoundsBeginEnd(param0: Int, param1: Int, param2: Int): Unit, -// java/lang/Object#notify(). => final method notify(): Unit, -// java/lang/String#endsWith(). => method endsWith(param0: String): Boolean, -// java/lang/Object#wait(+1). => final method wait(param0: Long): Unit +// java/lang/String#indexOf(). => method indexOf(param0: Int): Int, +// java/lang/CharSequence#compare(). => static method compare(param0: CharSequence, param1: CharSequence): Int, +// java/lang/Object#toString(). => method toString(): String, +// java/lang/String#codePointAt(). => method codePointAt(param0: Int): Int, +// java/lang/String#indexOf(+2). => method indexOf(param0: String): Int // ) getClassMethods(Symbol("scala/collection/immutable/List#")).take(5) // res31: Set[SymbolInformation] = HashSet( -// scala/collection/IterableOnceOps#reduceRightOption(). => method reduceRightOption[B >: A](op: Function2[A, B, B]): Option[B], -// scala/collection/IterableOnceOps#toStream(). => @deprecated @inline final method toStream: Stream[A], -// scala/collection/IterableOps#groupMap(). => method groupMap[K, B](key: Function1[A, K])(f: Function1[A, B]): Map[K, CC[B]], -// scala/collection/IterableOnceOps#`:\`(). => @deprecated @inline final method :\[B](z: B)(op: Function2[A, B, B]): B, -// scala/collection/IterableOnceOps#aggregate(). => @deprecated method aggregate[B](z: => B)(seqop: Function2[B, A, B], combop: Function2[B, B, B]): B +// scala/collection/IterableOps#groupMapReduce(). => method groupMapReduce[K, B](key: Function1[A, K])(f: Function1[A, B])(reduce: Function2[B, B, B]): Map[K, B], +// scala/collection/IterableOps#takeRight(). => method takeRight(n: Int): C, +// scala/collection/IterableOps#flatten(). => method flatten[B](implicit asIterable: Function1[A, IterableOnce[B]]): CC[B], +// scala/collection/IterableOnceOps#isEmpty(). => method isEmpty: Boolean, +// scala/collection/IterableOnce#iterator(). => abstract method iterator: Iterator[A] // )

For Java methods, use SymbolInformation.isStatic to separate static methods from non-static methods.

getClassMethods(Symbol("java/lang/String#")).filter(_.isStatic).take(3)
 // res32: Set[SymbolInformation] = HashSet(
-//   java/lang/String#format(+1). => static method format(param0: Locale, param1: String, param2: Object*): String,
-//   java/lang/String#valueOf(+5). => static method valueOf(param0: Int): String,
-//   java/lang/String#copyValueOf(). => static method copyValueOf(param0: Array[Char], param1: Int, param2: Int): String
+//   java/lang/String#valueOfCodePoint(). => private[lang] static method valueOfCodePoint(param0: Int): String,
+//   java/lang/String#indexOf(+4). => private[lang] static method indexOf(param0: Array[Byte], param1: Byte, param2: Int, param3: String, param4: Int): Int,
+//   java/lang/String#valueOf(). => static method valueOf(param0: Object): String
 // )
 getClassMethods(Symbol("java/lang/String#")).filter(!_.isStatic).take(3)
 // res33: Set[SymbolInformation] = HashSet(
-//   java/lang/Object#getClass(). => final method getClass(): Class[local_wildcard],
-//   java/lang/String#replaceAll(). => method replaceAll(param0: String, param1: String): String,
-//   java/lang/Object#equals(). => method equals(param0: Object): Boolean
+//   java/lang/Object#wait(+2). => final method wait(param0: Long, param1: Int): Unit,
+//   java/lang/String#compareTo(). => method compareTo(param0: String): Int,
+//   java/lang/Object#wait(+2). => final method wait(param0: Long, param1: Int): Unit
 // )
 

Lookup class primary constructor

@@ -475,9 +475,9 @@

// ) getMethodOverloads(Symbol("java/io/PrintStream#"), "print").take(3) // res47: Set[SymbolInformation] = HashSet( -// java/io/PrintStream#print(). => method print(param0: Boolean): Unit, -// java/io/PrintStream#print(+6). => method print(param0: Array[Char]): Unit, -// java/io/PrintStream#print(+8). => method print(param0: Object): Unit +// java/io/PrintStream#print(+2). => method print(param0: Int): Unit, +// java/io/PrintStream#print(+3). => method print(param0: Long): Unit, +// java/io/PrintStream#print(+5). => method print(param0: Double): Unit // )

Overloaded methods can be inherited from supertypes.

diff --git a/docs/users/installation.html b/docs/users/installation.html index 1b3be5381..ed42c3bfc 100644 --- a/docs/users/installation.html +++ b/docs/users/installation.html @@ -370,7 +370,7 @@

# Should say 0.11.1

Help

-
Scalafix 0.11.1+29-e9543257-SNAPSHOT
+
Scalafix 0.11.1+31-af2ba574-SNAPSHOT
 Usage: scalafix [options] [<path> ...]
 
 Scalafix is a refactoring and linting tool. Scalafix
@@ -542,10 +542,10 @@ 

// project/plugins.sbt addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") +resolvers += Resolver.sonatypeRepo("snapshots") -+dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.11.1+29-e9543257-SNAPSHOT" ++dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.11.1+31-af2ba574-SNAPSHOT"

If using the command-line interface

-
cs launch ch.epfl.scala:scalafix-cli_2.12.18:0.11.1+29-e9543257-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --help
+
cs launch ch.epfl.scala:scalafix-cli_2.12.18:0.11.1+31-af2ba574-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --help