Skip to content

Commit 6eefdc7

Browse files
committed
Drop a character less
1 parent bf3c679 commit 6eefdc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/scala/com/typesafe/tools/mima/lib/analyze/method/MethodChecker.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ private[analyze] object BaseMethodChecker {
4747
oldSignature == newSignature ||
4848
// Special case for https://github.com/scala/scala/pull/7975:
4949
(bytecodeName == MemberInfo.ConstructorName &&
50-
(newSignature.isEmpty || (oldSignature.endsWith(newSignature.drop(2))))
50+
(newSignature.isEmpty ||
51+
// The dropped character is the leading '('
52+
oldSignature.endsWith(newSignature.tail)
53+
)
5154
)
5255
}
5356

0 commit comments

Comments
 (0)