Skip to content

Commit

Permalink
using the newest odin version
Browse files Browse the repository at this point in the history
  • Loading branch information
nikololiahim committed Mar 7, 2022
1 parent 7a610f6 commit dfdb402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ SOFTWARE.
</site>
</distributionManagement>
<properties>
<odin.version>0.3.0</odin.version>
<odin.version>0.3.2</odin.version>
<eo.version>0.21.8</eo.version>
</properties>
<dependencies>
Expand Down Expand Up @@ -129,11 +129,6 @@ SOFTWARE.
<artifactId>interop_2.13</artifactId>
<version>${odin.version}</version>
</dependency>
<dependency>
<groupId>org.polystat.odin</groupId>
<artifactId>analysis_2.13</artifactId>
<version>${odin.version}</version>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/polystat/AnOdin.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import java.util.stream.Collectors;
import org.cactoos.Func;
import org.cactoos.list.ListOf;
import org.polystat.odin.analysis.mutualrec.naive.exceptions.UnsupportedDecoration;
import org.polystat.odin.interop.java.EOOdinAnalyzer;
import org.polystat.odin.interop.java.OdinAnalysisErrorInterop;

Expand All @@ -41,6 +40,7 @@
public final class AnOdin implements Analysis {

@Override
@SuppressWarnings("PMD.AvoidCatchingGenericException")
public Iterable<String> errors(final Func<String, XML> xmir,
final String locator) throws Exception {
final XML xml = xmir.apply(locator);
Expand All @@ -51,7 +51,8 @@ public Iterable<String> errors(final Func<String, XML> xmir,
.analyze(str).stream()
.map(OdinAnalysisErrorInterop::message)
.collect(Collectors.toList());
} catch (final UnsupportedDecoration ex) {
// @checkstyle IllegalCatchCheck (1 line)
} catch (final Exception ex) {
result = new ListOf<>(
String.format("Odin is not able to analyze the code, due to:%n%s", ex.getMessage())
);
Expand Down

0 comments on commit dfdb402

Please sign in to comment.