Skip to content

Commit

Permalink
Change access of all reader methods with ColumnFileReader as parame…
Browse files Browse the repository at this point in the history
…ter to `private` (#99)

* Make all reader methods with `ColumnFileReader` as parameter private

* Add changes to changelog
  • Loading branch information
NebelNidas authored Apr 19, 2024
1 parent 47a53e4 commit 3e56ee2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
- Overhauled the internal `ColumnFileReader` to behave more consistently and future-proof
- Made some internal methods in Enigma and TSRG readers actually private

## [0.6.1] - 2024-04-15
- Fixed CSRG and JAM writers sometimes skipping elements whose parents have incomplete destination names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static void read(Reader reader, String sourceNs, String targetNs, Mapping
read(new ColumnFileReader(reader, '\t', ' '), sourceNs, targetNs, visitor);
}

public static void read(ColumnFileReader reader, String sourceNs, String targetNs, MappingVisitor visitor) throws IOException {
private static void read(ColumnFileReader reader, String sourceNs, String targetNs, MappingVisitor visitor) throws IOException {
Set<MappingFlag> flags = visitor.getFlags();
MappingVisitor parentVisitor = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static void read(Reader reader, String sourceNs, String targetNs, Mapping
read(new ColumnFileReader(reader, '\t', ' '), sourceNs, targetNs, visitor);
}

public static void read(ColumnFileReader reader, String sourceNs, String targetNs, MappingVisitor visitor) throws IOException {
private static void read(ColumnFileReader reader, String sourceNs, String targetNs, MappingVisitor visitor) throws IOException {
MappingFormat format = reader.nextCol("tsrg2") ? format = MappingFormat.TSRG_2_FILE : MappingFormat.TSRG_FILE;
String srcNamespace;
List<String> dstNamespaces;
Expand Down

0 comments on commit 3e56ee2

Please sign in to comment.