FELIX-3283 Use generics
- add animal sniffer plugin to ensure not using non-Java 1.4 API
- Add generics everywhere
- convert traditional collection loops to foreach loops
- Update exported package version to 3.1.4 because of changed code
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1215540 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/pom.xml b/webconsole/pom.xml
index 2c51ed9..45708fa 100644
--- a/webconsole/pom.xml
+++ b/webconsole/pom.xml
@@ -81,6 +81,7 @@
</execution>
</executions>
</plugin>
+ <!-- Allow certain Java 5 features, generate Java 1.4 class files -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
@@ -88,6 +89,27 @@
<target>jsr14</target>
</configuration>
</plugin>
+ <!-- Make sure to not use non Java 1.4 API -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-maven-plugin</artifactId>
+ <version>1.7</version>
+ <configuration>
+ <signature>
+ <groupId>org.codehaus.mojo.signature</groupId>
+ <artifactId>java14</artifactId>
+ <version>1.0</version>
+ </signature>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>