Skip to content

Commit dfce527

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

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

compiler/src/dotty/tools/scripting/Main.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ object Main:
7878
writer.close()
7979
end writeJarfile
8080

81-
def pathsep: String = sys.props("path.separator").nn
81+
def pathsep: String = sys.props("path.separator")
8282

8383
extension(path: String) {
8484
// Normalize path separator, convert relative path to absolute
@@ -102,4 +102,4 @@ object Main:
102102
def secondChar: String = path.take(2).drop(1).mkString("")
103103
}
104104

105-
lazy val userDir: String = sys.props("user.dir").nn.norm
105+
lazy val userDir: String = sys.props("user.dir").norm

compiler/src/dotty/tools/scripting/Util.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object Util:
5656
end match
5757
end detectMainClassAndMethod
5858

59-
def pathsep: String = sys.props("path.separator").nn
59+
def pathsep: String = sys.props("path.separator")
6060

6161
end Util
6262

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)