diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-06-05 16:37:55 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-06-05 16:37:55 +0100 |
| commit | 939e7aa65abe18f57a129fee590f46b7cd32f688 (patch) | |
| tree | c0c56d0360f549807395bf087533e2269e16e81f /src/uk | |
| parent | 8c04e4d8003f33848ee84011f8427fe92d55001f (diff) | |
| download | ACQuA-939e7aa65abe18f57a129fee590f46b7cd32f688.tar.gz ACQuA-939e7aa65abe18f57a129fee590f46b7cd32f688.zip | |
Violations processor (Python script).
Diffstat (limited to 'src/uk')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/rules/approximators/LimitedSkolemisationApproximator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/rules/approximators/LimitedSkolemisationApproximator.java b/src/uk/ac/ox/cs/pagoda/rules/approximators/LimitedSkolemisationApproximator.java index da67264..dfe1e59 100644 --- a/src/uk/ac/ox/cs/pagoda/rules/approximators/LimitedSkolemisationApproximator.java +++ b/src/uk/ac/ox/cs/pagoda/rules/approximators/LimitedSkolemisationApproximator.java | |||
| @@ -8,8 +8,8 @@ import uk.ac.ox.cs.pagoda.util.tuples.Tuple; | |||
| 8 | import uk.ac.ox.cs.pagoda.util.tuples.TupleBuilder; | 8 | import uk.ac.ox.cs.pagoda.util.tuples.TupleBuilder; |
| 9 | 9 | ||
| 10 | import java.util.ArrayList; | 10 | import java.util.ArrayList; |
| 11 | import java.util.Arrays; | ||
| 12 | import java.util.Collection; | 11 | import java.util.Collection; |
| 12 | import java.util.Collections; | ||
| 13 | 13 | ||
| 14 | /** | 14 | /** |
| 15 | * Approximates existential rules through a limited form of Skolemisation. | 15 | * Approximates existential rules through a limited form of Skolemisation. |
| @@ -45,7 +45,7 @@ public class LimitedSkolemisationApproximator implements TupleDependentApproxima | |||
| 45 | case 1: | 45 | case 1: |
| 46 | return overApprox(clause, originalClause, violationTuples); | 46 | return overApprox(clause, originalClause, violationTuples); |
| 47 | case 0: | 47 | case 0: |
| 48 | return Arrays.asList(clause); | 48 | return Collections.singletonList(clause); |
| 49 | default: | 49 | default: |
| 50 | throw new IllegalArgumentException( | 50 | throw new IllegalArgumentException( |
| 51 | "Expected clause with head length < 1, but it is " + clause.getHeadLength()); | 51 | "Expected clause with head length < 1, but it is " + clause.getHeadLength()); |
