Partially removed replaceHashWithStar
This commit is contained in:
@@ -92,7 +92,7 @@ public trait AbstractSMAPBaseTest {
|
||||
|
||||
val files = data.substring(fileSectionStart, lineSection).split("\n")
|
||||
|
||||
val cleaned = files.map { JetTestUtils.replaceHashWithStar(it).replace("*", "HASH") }.join("\n")
|
||||
val cleaned = files.join("\n")
|
||||
|
||||
return data.substring(0, fileSectionStart) + cleaned + data.substring(lineSection)
|
||||
}
|
||||
|
||||
@@ -950,6 +950,7 @@ public class JetTestUtils {
|
||||
|
||||
@NotNull
|
||||
public static String replaceHashWithStar(@NotNull String string) {
|
||||
//TODO: hashes are still used in SamWrapperCodegen
|
||||
Matcher matcher = STRIP_PACKAGE_PART_HASH_PATTERN.matcher(string);
|
||||
if (matcher.find()) {
|
||||
return matcher.replaceAll("\\$*");
|
||||
|
||||
@@ -95,7 +95,7 @@ public class RecursiveDescriptorComparator {
|
||||
StringBuilder result = new StringBuilder();
|
||||
appendDeclarationRecursively(declarationDescriptor, DescriptorUtils.getContainingModule(declarationDescriptor),
|
||||
new Printer(result, 1), true);
|
||||
return JetTestUtils.replaceHashWithStar(result.toString());
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
private void appendDeclarationRecursively(
|
||||
|
||||
Reference in New Issue
Block a user