Skip to content

Commit e676a80

Browse files
committed
Remove unneeded .nns
1 parent 685e0e7 commit e676a80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/scala/reflect/Selectable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait Selectable extends scala.Selectable:
2323
final def selectDynamic(name: String): Any =
2424
val rcls = selectedValue.getClass
2525
try
26-
val fld = rcls.getField(NameTransformer.encode(name)).nn
26+
val fld = rcls.getField(NameTransformer.encode(name))
2727
ensureAccessible(fld)
2828
fld.get(selectedValue)
2929
catch case ex: NoSuchFieldException =>
@@ -37,7 +37,7 @@ trait Selectable extends scala.Selectable:
3737
*/
3838
final def applyDynamic(name: String, paramTypes: Class[?]*)(args: Any*): Any =
3939
val rcls = selectedValue.getClass
40-
val mth = rcls.getMethod(NameTransformer.encode(name), paramTypes*).nn
40+
val mth = rcls.getMethod(NameTransformer.encode(name), paramTypes*)
4141
ensureAccessible(mth)
4242
mth.invoke(selectedValue, args.asInstanceOf[Seq[AnyRef]]*)
4343

library/src/scala/util/FromDigits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ object FromDigits {
154154
case ex: NumberFormatException => throw MalformedNumber()
155155
}
156156
if (x.isInfinite) throw NumberTooLarge()
157-
if (x == 0.0d && !zeroFloat.pattern.matcher(digits).nn.matches) throw NumberTooSmall()
157+
if (x == 0.0d && !zeroFloat.pattern.matcher(digits).matches) throw NumberTooSmall()
158158
x
159159
}
160160

0 commit comments

Comments
 (0)