Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a656af

Browse files
smowtonigfoo
authored andcommitted
Make truncation consistent
1 parent 1b91a35 commit 1a656af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ open class KotlinUsesExtractor(
262262
// In order to avoid excessively long signatures which can lead to trap file names longer than the filesystem
263263
// limit, we truncate and add a hash to preserve uniqueness if necessary.
264264
val signature = if (possiblyLongSignature.length > 100) {
265-
possiblyLongSignature.substring(0, 42) + "#" + StringDigestor.digest(possiblyLongSignature).substring(0, 8)
265+
possiblyLongSignature.substring(0, 92) + "#" + StringDigestor.digest(possiblyLongSignature).substring(0, 8)
266266
} else { possiblyLongSignature }
267267
dependencyCollector?.addDependency(f, signature)
268268
externalClassExtractor.extractLater(f, signature)

0 commit comments

Comments
 (0)