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