Temporarily include bndlib 1.47 for testing purposes (not yet on central)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1185095 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/bnd/compatibility/GenericParameter.java b/bundleplugin/src/main/java/aQute/bnd/compatibility/GenericParameter.java
new file mode 100644
index 0000000..1eac28c
--- /dev/null
+++ b/bundleplugin/src/main/java/aQute/bnd/compatibility/GenericParameter.java
@@ -0,0 +1,25 @@
+package aQute.bnd.compatibility;
+
+public class GenericParameter {
+ String name;
+ GenericType bounds[];
+
+ public GenericParameter(String name, GenericType[] bounds) {
+ this.name = name;
+ this.bounds = bounds;
+ if (bounds == null || bounds.length == 0)
+ bounds = new GenericType[] { new GenericType( Object.class) };
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(name);
+ if ( bounds != null && bounds.length > 0) {
+ for ( GenericType gtype : bounds ) {
+ sb.append( ":");
+ sb.append(gtype);
+ }
+ }
+ return sb.toString();
+ }
+}