Skip to content

Commit ce457c7

Browse files
committed
SI-8140 Documentation references java.lang.String directly
1 parent 590436f commit ce457c7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/library/scala/Predef.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ object Predef extends LowPriorityImplicits with DeprecatedPredef {
8282
*/
8383
def classOf[T]: Class[T] = null // This is a stub method. The actual implementation is filled in by the compiler.
8484

85+
/**
86+
* The `String` type in Scala has methods that come either from the underlying
87+
* Java String (see the documentation corresponding to your Java version, for
88+
* example [[http://docs.oracle.com/javase/7/docs/api/java/lang/String.html]]) or
89+
* are added implicitly through [[scala.collection.immutable.StringOps]].
90+
*/
8591
type String = java.lang.String
8692
type Class[T] = java.lang.Class[T]
8793

src/library/scala/collection/immutable/StringOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ package immutable
1313
import mutable.StringBuilder
1414

1515
/**
16-
* This class serves as a wrapper providing `String`s with all the operations
17-
* found in indexed sequences. Where needed, instances of `String` object
16+
* This class serves as a wrapper providing [[scala.Predef.String]]s with all the operations
17+
* found in indexed sequences. Where needed, instances of `String` objects
1818
* are implicitly converted into this class.
1919
*
2020
* The difference between this class and `WrappedString` is that calling transformer

0 commit comments

Comments
 (0)