Skip to content

Commit 35ba97c

Browse files
committed
Remove obsolete mentions of the NotNull class
1 parent a4c11eb commit 35ba97c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/TypeErasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class TypeErasure(isJava: Boolean, isSemi: Boolean, isConstructor: Boolean, wild
253253
* - otherwise, if T is a type paramter coming from Java, []Object
254254
* - otherwise, Object
255255
* - For a term ref p.x, the type <noprefix> # x.
256-
* - For a typeref scala.Any, scala.AnyVal, scala.Singleon or scala.NotNull: |java.lang.Object|
256+
* - For a typeref scala.Any, scala.AnyVal or scala.Singleton: |java.lang.Object|
257257
* - For a typeref scala.Unit, |scala.runtime.BoxedUnit|.
258258
* - For a typeref P.C where C refers to a class, <noprefix> # C.
259259
* - For a typeref P.C where C refers to an alias type, the erasure of C's alias.

src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ object SymDenotations {
466466

467467
/** Is this symbol a class references to which that are supertypes of null? */
468468
final def isNullableClass(implicit ctx: Context): Boolean =
469-
isNonValueClass && !(this is ModuleClass) // todo: check that class does not derive from NotNull?
469+
isNonValueClass && !(this is ModuleClass)
470470

471471
/** Is this definition accessible as a member of tree with type `pre`?
472472
* @param pre The type of the tree from which the selection is made

0 commit comments

Comments
 (0)