Make all *.scala *.sbt *.txt *.md *.yml and README files end in a newline

This commit is contained in:
Jasper Moeys 2019-01-31 10:23:29 +01:00
parent e40c95e6e5
commit 5d72bd0b07
1217 changed files with 1217 additions and 1217 deletions

View File

@ -33,4 +33,4 @@ Licenses
Scala is licensed under the standard 3-clause BSD license,
included in the distribution as the file `doc/LICENSE.md`.
The licenses of the software included in the Scala distribution can
be found in the `doc/licenses` directory.
be found in the `doc/licenses` directory.

View File

@ -28,4 +28,4 @@ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -19,4 +19,4 @@ object AutomaticModuleName {
Osgi.headers += pair
)
}
}
}

View File

@ -51,4 +51,4 @@ object ParserUtil {
Completions.strict(xs.map(x => Completion.tokenDisplay(x.stripPrefix(seen), x)).toSet)
})).filter(!_.startsWith("-"), x => x)
}
}
}

View File

@ -44,4 +44,4 @@ trait Aliases {
implicit class RichOpenImplicit(oi: universe.analyzer.OpenImplicit) {
def toImplicitCandidate = ImplicitCandidate(oi.info.pre, oi.info.sym, oi.pt, oi.tree)
}
}
}

View File

@ -56,4 +56,4 @@ trait Internals extends scala.tools.nsc.transform.TypingTransformers {
trans.atOwner(owner)(trans.transform(tree))
}
}
}
}

View File

@ -52,4 +52,4 @@ trait Names {
def freshName[NameType <: Name](name: NameType): NameType =
name.mapName(freshName(_)).asInstanceOf[NameType]
}
}

View File

@ -47,4 +47,4 @@ trait JavaReflectionRuntimes {
}
}
}
}
}

View File

@ -14,4 +14,4 @@ package scala.reflect.macros
package object runtime {
type Context = scala.reflect.macros.contexts.Context
}
}

View File

@ -27,4 +27,4 @@ trait StdAttachments {
}
case class ReifyAliasAttachment(sym: Symbol, alias: TermName)
}
}

View File

@ -30,4 +30,4 @@ trait Utils extends NodePrinters
val reifyDebug = global.settings.Yreifydebug.value
val reifyCopypaste = global.settings.Yreifycopypaste.value
val reifyTrace = scala.tools.nsc.util.trace when reifyDebug
}
}

View File

@ -39,4 +39,4 @@ trait Parsing { self : Positions with Reporting =>
if (incompleteHandled) incompleteHandler(pos, msg)
else reporter.error(pos, msg)
}
}
}

View File

@ -18,4 +18,4 @@ package ast.parser
* @param inserted If true, brace needs to be inserted, otherwise brace needs to be deleted.
*/
case class BracePatch(off: Int, inserted: Boolean)
extends Patch(off, if (inserted) Insertion("{") else Deletion(1))
extends Patch(off, if (inserted) Insertion("{") else Deletion(1))

View File

@ -151,4 +151,4 @@ object ThreadPoolFactory {
}
}
}
}
}

View File

@ -19,4 +19,4 @@ import scala.tools.nsc.Global
* reflect specific traits are initialized */
private[reflect] trait ReflectSetup { this: Global =>
phase = new Run().typerPhase
}
}

View File

@ -24,4 +24,4 @@ private[tests] object ConsoleReporter extends Reporter {
/** Reporter that swallows all passed message. */
private[tests] object NullReporter extends Reporter {
def println(msg: Any): Unit = {}
}
}

View File

@ -21,4 +21,4 @@ private[tests] trait TestResources extends TestSettings {
protected lazy val sourceFiles: Array[SourceFile] = SourcesCollector(baseDir / sourceDir, isScalaOrJavaSource)
private def isScalaOrJavaSource(file: Path): Boolean = file.extension == "scala" | file.extension == "java"
}
}

View File

@ -1,3 +1,3 @@
Source files under this directory cannot be compiled by normal means.
They exist for bootstrapping and documentation purposes.
They exist for bootstrapping and documentation purposes.

View File

@ -56,4 +56,4 @@ package scala
*
* See also [[https://docs.scala-lang.org/sips/42.type.html SIP-23 about Literal-based Singleton Types]].
*/
final trait Singleton extends Any
final trait Singleton extends Any

View File

@ -73,4 +73,4 @@ trait IsIterableOnceLowPriority {
isIterableLike: IsIterable[Repr]
): IsIterableOnce[Repr] { type A = isIterableLike.A } = isIterableLike
}
}

View File

@ -1758,4 +1758,4 @@ private[immutable] final class HashMapBuilder[K, V] extends ReusableBuilder[(K,
}
private[collection] def size: Int = rootNode.size
}
}

View File

@ -188,4 +188,4 @@ private[concurrent] object BatchingExecutorStatics {
* By default it tests the Runnable for being an instance of [Batchable].
**/
protected def batchable(runnable: Runnable): Boolean = runnable.isInstanceOf[Batchable]
}
}

View File

@ -19,4 +19,4 @@ package reflect
// @deprecated("This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests.", "2.10.0")
object NoManifest extends OptManifest[Nothing] with Serializable {
override def toString = "<?>"
}
}

View File

@ -21,4 +21,4 @@ package reflect
*/
// TODO undeprecated until Scala reflection becomes non-experimental
// @deprecated("This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests.", "2.10.0")
trait OptManifest[+T] extends Serializable
trait OptManifest[+T] extends Serializable

View File

@ -76,4 +76,4 @@ object Util {
implicit class ArrayDeep(val a: Array[_]) extends AnyVal {
def deep: collection.IndexedSeq[Any] = prettyArray(a)
}
}
}

View File

@ -68,4 +68,4 @@ trait JavaUniverse extends Universe { self =>
* @group JavaMirrors
*/
def runtimeMirror(cl: ClassLoader): Mirror
}
}

View File

@ -57,4 +57,4 @@ package object api {
// todo. once we have implicit macros for tag generation, we can remove these anchors
private[scala] def materializeWeakTypeTag[T](u: ApiUniverse): u.WeakTypeTag[T] = macro ???
private[scala] def materializeTypeTag[T](u: ApiUniverse): u.TypeTag[T] = macro ???
}
}

View File

@ -31,4 +31,4 @@ trait StdCreators {
if (m eq mirror) tpe.asInstanceOf[U # Type]
else throw new IllegalArgumentException(s"Type tag defined in $mirror cannot be migrated to other mirrors.")
}
}
}

View File

@ -86,4 +86,4 @@ trait Context extends blackbox.Context {
* and always stays the same regardless of whatever happens during macro expansion.
*/
def enclosingImplicits: List[ImplicitCandidate]
}
}

View File

@ -30,4 +30,4 @@ trait Universer extends Generator {
universeField != null
}
}
}

View File

@ -167,4 +167,4 @@ class BitManipulationBenchmark {
if (remaining >= 4) { remaining >>>= 2; exponent -= 2 }
if (remaining >= 2) exponent - 1 else exponent
}
}
}

View File

@ -34,4 +34,4 @@ class SizeCompareOpsBenchmark {
@Benchmark def sizeComparePretty: Any = {
values.sizeIs == cmpTo
}
}
}

View File

@ -30,4 +30,4 @@ class ListMapBenchmark {
val b = new ListMapBuilder[Int, Int]
bh.consume(b.addAll(kvs).result())
}
}
}

View File

@ -392,4 +392,4 @@ class CallbackFutureBenchmark extends OpFutureBenchmark {
post_p.complete(aSuccess)
callback.await()
}
}
}

View File

@ -90,4 +90,4 @@ class ClassTagBenchmark {
if (null != x && (ct.runtimeClass.isInstance(x))) Some(x)
else None
}
}
}

View File

@ -53,4 +53,4 @@ class RegexUnapplyBenchmark {
bh.consume(z)
}
}
}

View File

@ -34,4 +34,4 @@ class RegexUnapplyGroupsBenchmark {
bh.consume(res)
}
}
}

View File

@ -339,4 +339,4 @@ object LocalAndAnonymousInLazyInitializer {
AA
}
}
}
}

View File

@ -141,4 +141,4 @@ trait TestUtil {
val x1 = x.toString.replaceAll("@[0-9a-z]+$", "")
println("x="+x1+", t="+t1+", k="+t1.tpe.asInstanceOf[Product].productPrefix+", s="+t1.tpe.typeSymbol.toString)
}
}
}

View File

@ -40,4 +40,4 @@ object Test extends BytecodeTest {
println(s"$boxunbox $checkcast $instanceof")
}
}
}
}

View File

@ -27,4 +27,4 @@ object Matchbox {
case (x: Int, y: Long) => x + y
case _ => 20
}
}
}

View File

@ -6,4 +6,4 @@ class SameBytecode {
def b = foo(a = 0, "")
def c = foo(0, b = "")
def d = foo(a = 0, b = "")
}
}

View File

@ -40,4 +40,4 @@ object Test extends App {
import JsonEncoderInstances._
implicitly[JsonEncoder[List[String]]].encode("" :: Nil)
}
}

View File

@ -15,4 +15,4 @@ object Test extends App {
println(ctor.getParameters.map(_.getParameterizedType).toList)
println(ctor.getGenericParameterTypes.toList)
}
}

View File

@ -1,3 +1,3 @@
class Test2 extends Test1[Test3[Test4]]
class Test4
object Test extends App {}
object Test extends App {}

View File

@ -22,4 +22,4 @@ class X {
val oImpl = new OuterImpl(this)
new oImpl.Inner
}
}
}

View File

@ -20,4 +20,4 @@ object Test extends BytecodeTest {
(node.getOpcode == opcode)
insnList.iterator.asScala.count(isNop)
}
}
}

View File

@ -1,3 +1,3 @@
import foo.AbstractProps
class Props extends AbstractProps
class Props extends AbstractProps

View File

@ -1 +1 @@
class Unimplemented extends scala.collection.IterableOps[String, List, List[String]] { }
class Unimplemented extends scala.collection.IterableOps[String, List, List[String]] { }

View File

@ -12,4 +12,4 @@ trait Xyz[T] {
trait Bippy[T1, T2, T3] extends collection.IterableOps[(T2, String), List, List[(T2, String)]] with Xyz[T3]
class Dingus extends Bippy[String, Set[Int], List[Int]]
class Dingus extends Bippy[String, Set[Int], List[Int]]

View File

@ -1 +1 @@
class HotDog
class HotDog

View File

@ -1 +1 @@
class hotDog
class hotDog

View File

@ -10,4 +10,4 @@ package bar {
class Innocent extends A(5)
case class Dingus(y: Int) extends Innocent
case object Hungle extends Blameless(5)
}
}

View File

@ -1,4 +1,4 @@
object Test extends App {
def foo[T] = Array[T]()
println(foo[Int].getClass)
}
}

View File

@ -4,4 +4,4 @@ object Test extends App {
def mkArray[T: ClassTag] = Array[T]()
def foo[T] = mkArray[T]
println(foo[Int].getClass)
}
}

View File

@ -4,4 +4,4 @@ object Test extends App {
def mkArray[T] = Array[T]()
def foo[T: ClassTag] = mkArray[T]
println(foo[Int].getClass)
}
}

View File

@ -2,4 +2,4 @@ import scala.reflect.runtime.universe._
object Test extends App {
def foo[T: TypeTag] = Array[T]()
}
}

View File

@ -73,4 +73,4 @@ class placebo extends scala.annotation.StaticAnnotation
@placebo
class Test {
@placebo def x = (2: @placebo)
}
}

View File

@ -12,4 +12,4 @@ object Test extends App {
val fortyTwo = 42
val ignored3 = reify(fortyTwo).splice
val ignored4 = reify(fortyTwo).value
}
}

View File

@ -2,4 +2,4 @@ object Test {
def precise0(y: x.type)(x: String): Unit = {}
def precise1(x: String, y: x.type): Unit = {}
def precise2[T <: y.type](y: String): Unit = {}
}
}

View File

@ -1,2 +1,2 @@
class C /* noerror */
object O /* noerror */
object O /* noerror */

View File

@ -1,2 +1,2 @@
class C
object O
object O

View File

@ -2,4 +2,4 @@
object Test {
def foo(x: AnyRef): x.type = x
val x: Any => Any = foo
}
}

View File

@ -103,4 +103,4 @@ object Misc {
class Trippy[+T1, T2, +T3]
def g1 = Set[Trippy[AnyRef, AnyRef, AnyRef]]() + new Trippy[String, String, String]
def g2 = Set[Map[String, String]]() + Map[AnyRef, String]()
}
}

View File

@ -2,4 +2,4 @@ class Test {
def foo {
private def bar {}
}
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
weakTypeTagIsnotClassManifest[Int]
weakTypeTagIsnotClassManifest[String]
weakTypeTagIsnotClassManifest[Array[Int]]
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
weakTypeTagIsnotClassTag[Int]
weakTypeTagIsnotClassTag[String]
weakTypeTagIsnotClassTag[Array[Int]]
}
}

View File

@ -8,4 +8,4 @@ object Test extends App {
weakTypeTagIsnotManifest[Int]
weakTypeTagIsnotManifest[String]
weakTypeTagIsnotManifest[Array[Int]]
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
classManifestIsnotTypeTag[Int]
classManifestIsnotTypeTag[String]
classManifestIsnotTypeTag[Array[Int]]
}
}

View File

@ -8,4 +8,4 @@ object Test extends App {
classTagIsnotManifest[Int]
classTagIsnotManifest[String]
classTagIsnotManifest[Array[Int]]
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
typeTagIsnotClassManifest[Int]
typeTagIsnotClassManifest[String]
typeTagIsnotClassManifest[Array[Int]]
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
typeTagIsnotClassTag[Int]
typeTagIsnotClassTag[String]
typeTagIsnotClassTag[Array[Int]]
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
typeTagWithoutClassTagIsnotManifest[Int]
typeTagWithoutClassTagIsnotManifest[String]
typeTagWithoutClassTagIsnotManifest[Array[Int]]
}
}

View File

@ -27,4 +27,4 @@ object Test {
val m = new Ann_0 { val annotationType = classOf[Ann_0] } // ok
val n = new Ann_1 { val annotationType = classOf[Ann_1] } // ok
}
}

View File

@ -1,3 +1,3 @@
object Test extends App {
Macros.abort
}
}

View File

@ -31,4 +31,4 @@ class Macros {
object Test extends App {
import Macros.Shmacros._
println(foo(2) + Macros.bar(2) * new Macros().quux(4))
}
}

View File

@ -22,4 +22,4 @@ object Macros {
c.abort(c.enclosingPosition, "I don't like classes that contain integers")
q"new Foo[$tpe]{ override def toString = ${tpe.toString} }"
}
}
}

View File

@ -1,4 +1,4 @@
object Test extends App {
println(implicitly[Foo[C1]])
println(implicitly[Foo[C2]])
}
}

View File

@ -9,4 +9,4 @@ object Test extends App {
typed[(Int, String, Boolean)](equiv)
println(equiv)
}
}
}

View File

@ -12,4 +12,4 @@ object Macros {
}
def foo: Any = macro impl
}
}

View File

@ -2,4 +2,4 @@ import Macros._
object Test extends App {
println(Macros.foo.x)
}
}

View File

@ -8,4 +8,4 @@ abstract class Bundle(c: Context) {
object Macros {
def foo = macro Bundle.impl
}
}

View File

@ -11,4 +11,4 @@ object Macros {
object Test extends App {
def foo: Unit = macro Macros.impl
}
}

View File

@ -8,4 +8,4 @@ class Macros(val c: Context) {
object Macros {
def foo: Any = macro impl
}
}

View File

@ -6,4 +6,4 @@ class Bundle {
object Macros {
def foo = Bundle.impl
}
}

View File

@ -8,4 +8,4 @@ class Macros(c: Context) {
object Macros {
def foo: Any = macro Macros.impl
}
}

View File

@ -8,4 +8,4 @@ class Macros(val c: Context) {
object Macros {
def foo: Any = macro Macros.impl
}
}

View File

@ -9,4 +9,4 @@ class Bundle(val c: BlackboxContext) {
object Macros {
def foo = macro Bundle.impl
}
}

View File

@ -40,4 +40,4 @@ object Macros {
def white1: Any = macro WhiteboxBundle1.impl
def white2: Any = macro WhiteboxBundle2.impl
def white3: Any = macro WhiteboxBundle3.impl
}
}

View File

@ -11,4 +11,4 @@ object Macros {
object Test extends App {
def foo: Unit = macro Macros.impl
}
}

View File

@ -11,4 +11,4 @@ object Macros {
object Test extends App {
def foo: Unit = macro Macros.impl
}
}

View File

@ -8,4 +8,4 @@ trait Bundle {
object Macros {
def foo = macro Bundle.impl
}
}

View File

@ -10,4 +10,4 @@ class Bundle(val c: MyContext) {
object Macros {
def foo: Any = macro Bundle.impl
}
}

View File

@ -8,4 +8,4 @@ class Bundle(val c: Context { type Foo <: Int }) {
object Macros {
def foo: Any = macro Bundle.impl
}
}

View File

@ -1,3 +1,3 @@
object Test extends App {
println(implicitly[Complex[Foo]])
}
}

View File

@ -1,3 +1,3 @@
object Test extends App {
Macros.exception
}
}

View File

@ -4,4 +4,4 @@ import scala.reflect.macros.blackbox.Context
object Macros {
def impl(c: Context) = c.universe.Literal(c.universe.Constant(()))
def foo: Unit = macro impl
}
}

View File

@ -32,4 +32,4 @@ class Plugin(val global: Global) extends NscPlugin {
Some(result)
}
}
}
}

View File

@ -1,4 +1,4 @@
object Test extends App {
Macros.foo
Macros.foo
}
}

View File

@ -4,4 +4,4 @@ import scala.reflect.macros.blackbox.Context
object Macros {
def impl(c: Context) = c.universe.Literal(c.universe.Constant(()))
def foo: Unit = macro impl
}
}

Some files were not shown because too many files have changed in this diff Show More