Skip to content

Commit

Permalink
Resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdiazgon committed Sep 27, 2019
2 parents 4ace141 + d4be6e2 commit 8389906
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ public Object read(String type, Path path, Charset inputCharset, Object... addit
@Override
public Object read(Path path, Charset inputCharset, Object... additionalArguments) throws InputReaderException {
Set<String> keySet = PluginRegistry.getTriggerInterpreterKeySet();
// We first try to find an input reader that is most likely readable
for (String s : keySet) {
try {
if (isMostLikelyReadable(s, path)) {
return getInputReader(s).read(path, inputCharset, additionalArguments);
}
} catch (InputReaderException e) {
// nothing to do.
}
}

// No input reader is most likely readable, then we try with every of them until we find the correct
// one
for (String s : keySet) {
try {
return getInputReader(s).read(path, inputCharset, additionalArguments);
Expand Down
2 changes: 1 addition & 1 deletion cobigen/cobigen-core-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</parent>

<properties>
<cobigencore.version>5.3.4</cobigencore.version>
<cobigencore.version>5.3.5-SNAPSHOT</cobigencore.version>
</properties>

<modules>
Expand Down

0 comments on commit 8389906

Please sign in to comment.