diff options
author | Mirko Friedenhagen <mfriedenhagen@gmail.com> | 2013-11-29 23:02:44 +0100 |
---|---|---|
committer | Mirko Friedenhagen <mfriedenhagen@gmail.com> | 2013-11-29 23:10:11 +0100 |
commit | 0dbd9687afce808c115bd843ae596d3c10db9ac5 (patch) | |
tree | 8ba62d93d63d684e475559e2fbfe0fe13ccccbd3 /org.jacoco.report | |
parent | 848c2935353f2e22028a543e5fd4e2ca6d8a9aea (diff) | |
download | jacoco-0dbd9687afce808c115bd843ae596d3c10db9ac5.tar.gz |
Workaround for Maven-2 compatibility.
* Use String parameters and Enum.valueOf methods because old versions of
plexus-container-default used in Maven-2 do not include a EnumConverter.
* Add implementation hints in POMs because Maven-2 is unable to guess
implementing classes correctly.
See http://blog.sonatype.com/people/2011/03/configuring-plugin-goals-in-maven-3/#.UpkF45FIhsp)
* Use concrete type ArrayList instead of List in MergeMojo because Maven-2 is not
able to deduce a corresponding class for an interface.
Diffstat (limited to 'org.jacoco.report')
-rw-r--r-- | org.jacoco.report/src/org/jacoco/report/check/Limit.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/org.jacoco.report/src/org/jacoco/report/check/Limit.java b/org.jacoco.report/src/org/jacoco/report/check/Limit.java index 113cc3c7..b6254f5e 100644 --- a/org.jacoco.report/src/org/jacoco/report/check/Limit.java +++ b/org.jacoco.report/src/org/jacoco/report/check/Limit.java @@ -79,12 +79,13 @@ public class Limit { /** * Sets the counter entity to check. - * + * @todo: use ElementType directly once Maven 3 is required. + * * @param entity * counter entity to check */ - public void setCounter(final CounterEntity entity) { - this.entity = entity; + public void setCounter(final String entity) { + this.entity = CounterEntity.valueOf(entity); } /** @@ -96,12 +97,13 @@ public class Limit { /** * Sets the value to check. - * + * @todo: use ElementType directly once Maven 3 is required. + * * @param value * value to check */ - public void setValue(final CounterValue value) { - this.value = value; + public void setValue(final String value) { + this.value = CounterValue.valueOf(value); } /** |