Apply patches for FELIX-3376 to adapt example to Java 5.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1298008 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/examples/extenderbased.triangle/pom.xml b/examples/extenderbased.triangle/pom.xml
index df96b3c..c28cff3 100644
--- a/examples/extenderbased.triangle/pom.xml
+++ b/examples/extenderbased.triangle/pom.xml
@@ -16,7 +16,7 @@
specific language governing permissions and limitations
under the License.
-->
-<project>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.apache.felix</groupId>
@@ -61,6 +61,14 @@
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/examples/extenderbased.triangle/src/main/java/org/apache/felix/example/extenderbased/triangle/Triangle.java b/examples/extenderbased.triangle/src/main/java/org/apache/felix/example/extenderbased/triangle/Triangle.java
index 742b6c7..c65e94f 100644
--- a/examples/extenderbased.triangle/src/main/java/org/apache/felix/example/extenderbased/triangle/Triangle.java
+++ b/examples/extenderbased.triangle/src/main/java/org/apache/felix/example/extenderbased/triangle/Triangle.java
@@ -23,9 +23,8 @@
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.Point;
-import java.awt.geom.*;
+import java.awt.geom.GeneralPath;
import org.apache.felix.example.extenderbased.host.extension.SimpleShape;
-import org.osgi.framework.*;
/**
* This inner class implements the triangle <tt>SimpleShape</tt> service.