Skip to content

Commit 5d72bd0

Browse files
committed
Make all *.scala *.sbt *.txt *.md *.yml and README files end in a newline
1 parent e40c95e commit 5d72bd0

File tree

1,217 files changed

+1217
-1217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,217 files changed

+1217
-1217
lines changed

doc/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Licenses
3333
Scala is licensed under the standard 3-clause BSD license,
3434
included in the distribution as the file `doc/LICENSE.md`.
3535
The licenses of the software included in the Scala distribution can
36-
be found in the `doc/licenses` directory.
36+
be found in the `doc/licenses` directory.

doc/licenses/bsd_asm.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2828
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2929
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3030
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31-
THE POSSIBILITY OF SUCH DAMAGE.
31+
THE POSSIBILITY OF SUCH DAMAGE.

project/AutomaticModuleName.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ object AutomaticModuleName {
1919
Osgi.headers += pair
2020
)
2121
}
22-
}
22+
}

project/ParserUtil.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ object ParserUtil {
5151
Completions.strict(xs.map(x => Completion.tokenDisplay(x.stripPrefix(seen), x)).toSet)
5252
})).filter(!_.startsWith("-"), x => x)
5353
}
54-
}
54+
}

src/compiler/scala/reflect/macros/contexts/Aliases.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ trait Aliases {
4444
implicit class RichOpenImplicit(oi: universe.analyzer.OpenImplicit) {
4545
def toImplicitCandidate = ImplicitCandidate(oi.info.pre, oi.info.sym, oi.pt, oi.tree)
4646
}
47-
}
47+
}

src/compiler/scala/reflect/macros/contexts/Internals.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ trait Internals extends scala.tools.nsc.transform.TypingTransformers {
5656
trans.atOwner(owner)(trans.transform(tree))
5757
}
5858
}
59-
}
59+
}

src/compiler/scala/reflect/macros/contexts/Names.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ trait Names {
5252

5353
def freshName[NameType <: Name](name: NameType): NameType =
5454
name.mapName(freshName(_)).asInstanceOf[NameType]
55-
}
55+
}

src/compiler/scala/reflect/macros/runtime/JavaReflectionRuntimes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ trait JavaReflectionRuntimes {
4747
}
4848
}
4949
}
50-
}
50+
}

src/compiler/scala/reflect/macros/runtime/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ package scala.reflect.macros
1414

1515
package object runtime {
1616
type Context = scala.reflect.macros.contexts.Context
17-
}
17+
}

src/compiler/scala/reflect/reify/utils/StdAttachments.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ trait StdAttachments {
2727
}
2828

2929
case class ReifyAliasAttachment(sym: Symbol, alias: TermName)
30-
}
30+
}

src/compiler/scala/reflect/reify/utils/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ trait Utils extends NodePrinters
3030
val reifyDebug = global.settings.Yreifydebug.value
3131
val reifyCopypaste = global.settings.Yreifycopypaste.value
3232
val reifyTrace = scala.tools.nsc.util.trace when reifyDebug
33-
}
33+
}

src/compiler/scala/tools/nsc/Parsing.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ trait Parsing { self : Positions with Reporting =>
3939
if (incompleteHandled) incompleteHandler(pos, msg)
4040
else reporter.error(pos, msg)
4141
}
42-
}
42+
}

src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ package ast.parser
1818
* @param inserted If true, brace needs to be inserted, otherwise brace needs to be deleted.
1919
*/
2020
case class BracePatch(off: Int, inserted: Boolean)
21-
extends Patch(off, if (inserted) Insertion("{") else Deletion(1))
21+
extends Patch(off, if (inserted) Insertion("{") else Deletion(1))

src/compiler/scala/tools/nsc/profile/ThreadPoolFactory.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ object ThreadPoolFactory {
151151
}
152152
}
153153
}
154-
}
154+
}

src/compiler/scala/tools/reflect/ReflectSetup.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ import scala.tools.nsc.Global
1919
* reflect specific traits are initialized */
2020
private[reflect] trait ReflectSetup { this: Global =>
2121
phase = new Run().typerPhase
22-
}
22+
}

src/interactive/scala/tools/nsc/interactive/tests/core/Reporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ private[tests] object ConsoleReporter extends Reporter {
2424
/** Reporter that swallows all passed message. */
2525
private[tests] object NullReporter extends Reporter {
2626
def println(msg: Any): Unit = {}
27-
}
27+
}

src/interactive/scala/tools/nsc/interactive/tests/core/TestResources.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ private[tests] trait TestResources extends TestSettings {
2121
protected lazy val sourceFiles: Array[SourceFile] = SourcesCollector(baseDir / sourceDir, isScalaOrJavaSource)
2222

2323
private def isScalaOrJavaSource(file: Path): Boolean = file.extension == "scala" | file.extension == "java"
24-
}
24+
}

src/library-aux/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Source files under this directory cannot be compiled by normal means.
22

3-
They exist for bootstrapping and documentation purposes.
3+
They exist for bootstrapping and documentation purposes.

src/library-aux/scala/Singleton.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ package scala
5656
*
5757
* See also [[https://docs.scala-lang.org/sips/42.type.html SIP-23 about Literal-based Singleton Types]].
5858
*/
59-
final trait Singleton extends Any
59+
final trait Singleton extends Any

src/library/scala/collection/generic/IsIterableOnce.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ trait IsIterableOnceLowPriority {
7373
isIterableLike: IsIterable[Repr]
7474
): IsIterableOnce[Repr] { type A = isIterableLike.A } = isIterableLike
7575

76-
}
76+
}

src/library/scala/collection/immutable/HashMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,4 +1758,4 @@ private[immutable] final class HashMapBuilder[K, V] extends ReusableBuilder[(K,
17581758
}
17591759

17601760
private[collection] def size: Int = rootNode.size
1761-
}
1761+
}

src/library/scala/concurrent/BatchingExecutor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ private[concurrent] object BatchingExecutorStatics {
188188
* By default it tests the Runnable for being an instance of [Batchable].
189189
**/
190190
protected def batchable(runnable: Runnable): Boolean = runnable.isInstanceOf[Batchable]
191-
}
191+
}

src/library/scala/reflect/NoManifest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ package reflect
1919
// @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")
2020
object NoManifest extends OptManifest[Nothing] with Serializable {
2121
override def toString = "<?>"
22-
}
22+
}

src/library/scala/reflect/OptManifest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ package reflect
2121
*/
2222
// TODO undeprecated until Scala reflection becomes non-experimental
2323
// @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")
24-
trait OptManifest[+T] extends Serializable
24+
trait OptManifest[+T] extends Serializable

src/partest/scala/tools/partest/Util.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ object Util {
7676
implicit class ArrayDeep(val a: Array[_]) extends AnyVal {
7777
def deep: collection.IndexedSeq[Any] = prettyArray(a)
7878
}
79-
}
79+
}

src/reflect/scala/reflect/api/JavaUniverse.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ trait JavaUniverse extends Universe { self =>
6868
* @group JavaMirrors
6969
*/
7070
def runtimeMirror(cl: ClassLoader): Mirror
71-
}
71+
}

src/reflect/scala/reflect/api/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ package object api {
5757
// todo. once we have implicit macros for tag generation, we can remove these anchors
5858
private[scala] def materializeWeakTypeTag[T](u: ApiUniverse): u.WeakTypeTag[T] = macro ???
5959
private[scala] def materializeTypeTag[T](u: ApiUniverse): u.TypeTag[T] = macro ???
60-
}
60+
}

src/reflect/scala/reflect/internal/StdCreators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ trait StdCreators {
3131
if (m eq mirror) tpe.asInstanceOf[U # Type]
3232
else throw new IllegalArgumentException(s"Type tag defined in $mirror cannot be migrated to other mirrors.")
3333
}
34-
}
34+
}

src/reflect/scala/reflect/macros/whitebox/Context.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ trait Context extends blackbox.Context {
8686
* and always stays the same regardless of whatever happens during macro expansion.
8787
*/
8888
def enclosingImplicits: List[ImplicitCandidate]
89-
}
89+
}

src/scaladoc/scala/tools/nsc/doc/doclet/Universer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ trait Universer extends Generator {
3030
universeField != null
3131
}
3232

33-
}
33+
}

test/benchmarks/src/main/scala/scala/BitManipulationBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ class BitManipulationBenchmark {
167167
if (remaining >= 4) { remaining >>>= 2; exponent -= 2 }
168168
if (remaining >= 2) exponent - 1 else exponent
169169
}
170-
}
170+
}

test/benchmarks/src/main/scala/scala/collection/SizeCompareOpsBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ class SizeCompareOpsBenchmark {
3434
@Benchmark def sizeComparePretty: Any = {
3535
values.sizeIs == cmpTo
3636
}
37-
}
37+
}

test/benchmarks/src/main/scala/scala/collection/immutable/ListMapBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ class ListMapBenchmark {
3030
val b = new ListMapBuilder[Int, Int]
3131
bh.consume(b.addAll(kvs).result())
3232
}
33-
}
33+
}

test/benchmarks/src/main/scala/scala/concurrent/FutureBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,4 @@ class CallbackFutureBenchmark extends OpFutureBenchmark {
392392
post_p.complete(aSuccess)
393393
callback.await()
394394
}
395-
}
395+
}

test/benchmarks/src/main/scala/scala/reflect/ClassTagBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ class ClassTagBenchmark {
9090
if (null != x && (ct.runtimeClass.isInstance(x))) Some(x)
9191
else None
9292
}
93-
}
93+
}

test/benchmarks/src/main/scala/scala/util/matching/RegexUnapplyBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ class RegexUnapplyBenchmark {
5353

5454
bh.consume(z)
5555
}
56-
}
56+
}

test/benchmarks/src/main/scala/scala/util/matching/RegexUnapplyGroupsBenchmark.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ class RegexUnapplyGroupsBenchmark {
3434

3535
bh.consume(res)
3636
}
37-
}
37+
}

test/files/jvm/innerClassAttribute/Classes_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,4 +339,4 @@ object LocalAndAnonymousInLazyInitializer {
339339
AA
340340
}
341341
}
342-
}
342+
}

test/files/jvm/manifests-new.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ trait TestUtil {
141141
val x1 = x.toString.replaceAll("@[0-9a-z]+$", "")
142142
println("x="+x1+", t="+t1+", k="+t1.tpe.asInstanceOf[Product].productPrefix+", s="+t1.tpe.typeSymbol.toString)
143143
}
144-
}
144+
}

test/files/jvm/matchbox/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ object Test extends BytecodeTest {
4040
println(s"$boxunbox $checkcast $instanceof")
4141
}
4242
}
43-
}
43+
}

test/files/jvm/matchbox/matchbox_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ object Matchbox {
2727
case (x: Int, y: Long) => x + y
2828
case _ => 20
2929
}
30-
}
30+
}

test/files/jvm/named-args-in-order/SameBytecode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class SameBytecode {
66
def b = foo(a = 0, "")
77
def c = foo(0, b = "")
88
def d = foo(a = 0, b = "")
9-
}
9+
}

test/files/jvm/t10512a.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ object Test extends App {
4040
import JsonEncoderInstances._
4141

4242
implicitly[JsonEncoder[List[String]]].encode("" :: Nil)
43-
}
43+
}

test/files/jvm/t10880.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ object Test extends App {
1515
println(ctor.getParameters.map(_.getParameterizedType).toList)
1616
println(ctor.getGenericParameterTypes.toList)
1717

18-
}
18+
}

test/files/jvm/t2570/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class Test2 extends Test1[Test3[Test4]]
22
class Test4
3-
object Test extends App {}
3+
object Test extends App {}

test/files/jvm/t2585/genericouter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ class X {
2222
val oImpl = new OuterImpl(this)
2323
new oImpl.Inner
2424
}
25-
}
25+
}

test/files/jvm/unreachable/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ object Test extends BytecodeTest {
2020
(node.getOpcode == opcode)
2121
insnList.iterator.asScala.count(isNop)
2222
}
23-
}
23+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import foo.AbstractProps
22

3-
class Props extends AbstractProps
3+
class Props extends AbstractProps

test/files/neg/abstract-report.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class Unimplemented extends scala.collection.IterableOps[String, List, List[String]] { }
1+
class Unimplemented extends scala.collection.IterableOps[String, List, List[String]] { }

test/files/neg/abstract-report2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ trait Xyz[T] {
1212

1313
trait Bippy[T1, T2, T3] extends collection.IterableOps[(T2, String), List, List[(T2, String)]] with Xyz[T3]
1414

15-
class Dingus extends Bippy[String, Set[Int], List[Int]]
15+
class Dingus extends Bippy[String, Set[Int], List[Int]]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class HotDog
1+
class HotDog
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class hotDog
1+
class hotDog

test/files/neg/caseinherit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ package bar {
1010
class Innocent extends A(5)
1111
case class Dingus(y: Int) extends Innocent
1212
case object Hungle extends Blameless(5)
13-
}
13+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
object Test extends App {
22
def foo[T] = Array[T]()
33
println(foo[Int].getClass)
4-
}
4+
}

test/files/neg/classtags_contextbound_b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ object Test extends App {
44
def mkArray[T: ClassTag] = Array[T]()
55
def foo[T] = mkArray[T]
66
println(foo[Int].getClass)
7-
}
7+
}

test/files/neg/classtags_contextbound_c.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ object Test extends App {
44
def mkArray[T] = Array[T]()
55
def foo[T: ClassTag] = mkArray[T]
66
println(foo[Int].getClass)
7-
}
7+
}

test/files/neg/classtags_dont_use_typetags.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import scala.reflect.runtime.universe._
22

33
object Test extends App {
44
def foo[T: TypeTag] = Array[T]()
5-
}
5+
}

test/files/neg/compile-time-only-a.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ class placebo extends scala.annotation.StaticAnnotation
7373
@placebo
7474
class Test {
7575
@placebo def x = (2: @placebo)
76-
}
76+
}

0 commit comments

Comments
 (0)