FELIX-3301 Enforce only using Java 1.3 API and fix one single non-Java 1.3 API use

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1229057 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configadmin/pom.xml b/configadmin/pom.xml
index 3571ece..a6e05e0 100644
--- a/configadmin/pom.xml
+++ b/configadmin/pom.xml
@@ -178,6 +178,27 @@
                     </instructions>
                 </configuration>
             </plugin>
+            <!-- Make sure to not use non Java 1.3 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>java13-sun</artifactId>
+                        <version>1.0</version>
+                    </signature>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
             <!--
                 configure default compilation for Java 1.3 and integration
                 test compilation for Java 5 (since integration tests use
diff --git a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdminImpl.java b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdminImpl.java
index a48ba67..09b3222 100644
--- a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdminImpl.java
+++ b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationAdminImpl.java
@@ -116,7 +116,8 @@
             {
                 configurationManager.log( LogService.LOG_DEBUG, "Binding configuration {0} (isNew: {1}) to bundle {2}",
                     new Object[]
-                        { config.getPid(), Boolean.valueOf( config.isNew() ), this.getBundle().getLocation() } );
+                        { config.getPid(), config.isNew() ? Boolean.TRUE : Boolean.FALSE,
+                            this.getBundle().getLocation() } );
 
                 config.setStaticBundleLocation( this.getBundle().getLocation() );
             }