Skip to content

Commit

Permalink
CLDR-17535 Remove obsolete tools, fix UncheckedIOExceptions (#3972)
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiati authored Aug 20, 2024
1 parent 3dac41c commit de74f74
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 3,113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import com.google.common.collect.ImmutableSetMultimap;
import com.google.common.collect.LinkedHashMultimap;
import com.google.common.collect.Multimap;
import com.ibm.icu.util.ICUUncheckedIOException;
import java.io.File;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Set;
Expand Down Expand Up @@ -268,7 +268,7 @@ private static Stream<Path> listXmlFiles(Path dir) {
try {
return Files.walk(dir).filter(IS_XML_FILE);
} catch (IOException e) {
throw new UncheckedIOException(e);
throw new ICUUncheckedIOException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
import com.google.common.collect.ImmutableSortedMap;
import com.google.common.collect.Maps;
import com.google.common.collect.Multiset;
import com.ibm.icu.util.ICUUncheckedIOException;
import java.io.IOException;
import java.io.Reader;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
Expand Down Expand Up @@ -139,7 +139,7 @@ private static Reader openFile(Path p) {
try {
return Files.newBufferedReader(p);
} catch (IOException e) {
throw new UncheckedIOException(e);
throw new ICUUncheckedIOException(e);
}
}

Expand All @@ -158,7 +158,7 @@ private void read(ValueVisitor visitor, CldrDataType dtdType, boolean validating
src.setSystemId(p.toString());
parseXml(xmlReader, src, p);
} catch (IOException e) {
throw new UncheckedIOException(e);
throw new ICUUncheckedIOException(e);
}
}
}
Expand Down
Loading

0 comments on commit de74f74

Please sign in to comment.