mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-75575 (maven: don't offer to re-import after formatting pom.xml)
This commit is contained in:
@@ -637,8 +637,9 @@ public class MavenUtil {
|
||||
}
|
||||
|
||||
public static int getXmlCrc(@NotNull String xmlText) {
|
||||
String trimmedText = xmlText.trim();
|
||||
Lexer lexer = new XmlLexer();
|
||||
lexer.start(xmlText.trim());
|
||||
lexer.start(trimmedText);
|
||||
|
||||
CRC32 crc = new CRC32();
|
||||
|
||||
@@ -661,7 +662,7 @@ public class MavenUtil {
|
||||
}
|
||||
else {
|
||||
for (int start = lexer.getTokenStart(), end = lexer.getTokenEnd(); start < end; start++) {
|
||||
char a = xmlText.charAt(start);
|
||||
char a = trimmedText.charAt(start);
|
||||
crc.update(a);
|
||||
crc.update(a >>> 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user