Skip to content

Commit 8b9b976

Browse files
committed
Avoid unnecessary decodes
1 parent 216d0dc commit 8b9b976

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
227227
val major = readNat()
228228
val minor = readNat()
229229
if (major != MajorVersion || minor > MinorVersion)
230-
throw new IOException("Scala signature " + classRoot.fullName.decode +
230+
throw new IOException("Scala signature " + classRoot.fullName +
231231
" has wrong version\n expected: " +
232232
MajorVersion + "." + MinorVersion +
233233
"\n found: " + major + "." + minor +

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
157157
withoutPos(super.toText(tp))
158158
case tp: SelectionProto =>
159159
return "?{ " ~ toText(tp.name) ~
160-
(" " provided !tp.name.toSimpleName.decode.last.isLetterOrDigit) ~
160+
(" " provided !tp.name.toSimpleName.last.isLetterOrDigit) ~
161161
": " ~ toText(tp.memberProto) ~ " }"
162162
case tp: ViewProto =>
163163
return toText(tp.argType) ~ " ?=>? " ~ toText(tp.resultType)

0 commit comments

Comments
 (0)