Skip to content

Commit b229f74

Browse files
committed
spots
1 parent 5dccfe8 commit b229f74

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

unicodetools/src/main/java/org/unicode/props/PropertyParsingInfo.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,11 @@ static void parseSourceFile(
562562
propInfoSet);
563563
break;
564564
case PropertyValue:
565-
if (fileName.equals("PropList") && indexUnicodeProperties.ucdVersion.compareTo(VersionInfo.UNICODE_3_1_0) < 0) {
566-
parsePropertyDumpFile(
567-
fullFilename,
568-
indexUnicodeProperties,
569-
nextProperties
570-
);
565+
if (fileName.equals("PropList")
566+
&& indexUnicodeProperties.ucdVersion.compareTo(
567+
VersionInfo.UNICODE_3_1_0)
568+
< 0) {
569+
parsePropertyDumpFile(fullFilename, indexUnicodeProperties, nextProperties);
571570
} else {
572571
parsePropertyValueFile(
573572
parser.withMissing(true),
@@ -783,7 +782,8 @@ private static void parsePropertyDumpFile(
783782
IndexUnicodeProperties indexUnicodeProperties,
784783
IndexUnicodeProperties nextProperties) {
785784
final var dumpHeading = Pattern.compile("Property dump for: 0x[0-9A-F]{8} \\(([^()]+)\\)");
786-
final var dataLine = Pattern.compile("[0-9A-F]{4,6}(\\.\\.[0-9A-F]{4,6} \\(\\d+ chars\\))?");
785+
final var dataLine =
786+
Pattern.compile("[0-9A-F]{4,6}(\\.\\.[0-9A-F]{4,6} \\(\\d+ chars\\))?");
787787
PropertyParsingInfo propInfo = null;
788788
for (String line : FileUtilities.in("", fullFilename)) {
789789
final var heading = dumpHeading.matcher(line);
@@ -805,13 +805,13 @@ private static void parsePropertyDumpFile(
805805
range.set(line.split(" ", 1)[0]);
806806
final var data = indexUnicodeProperties.property2UnicodeMap.get(propInfo.property);
807807
propInfo.put(
808-
data,
809-
range,
810-
"Yes",
811-
null,
812-
nextProperties == null
813-
? null
814-
: nextProperties.getProperty(propInfo.property));
808+
data,
809+
range,
810+
"Yes",
811+
null,
812+
nextProperties == null
813+
? null
814+
: nextProperties.getProperty(propInfo.property));
815815
}
816816
}
817817
}

0 commit comments

Comments
 (0)