Partially removed replaceHashWithStar

This commit is contained in:
Michael Bogdanov
2015-07-02 09:49:22 +03:00
parent 45a85e3e35
commit 801d10229b
3 changed files with 3 additions and 2 deletions
@@ -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(