felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r759715 - in /felix/trunk/ipojo: manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java plugin/src/main/java/org/apache/felix/ipojo/plugin/ManipulatorMojo.java
Date Sun, 29 Mar 2009 16:18:10 GMT
Author: clement
Date: Sun Mar 29 16:18:10 2009
New Revision: 759715

URL: http://svn.apache.org/viewvc?rev=759715&view=rev
Log:
Remove dependencies on java 1.5.

Modified:
    felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
    felix/trunk/ipojo/plugin/src/main/java/org/apache/felix/ipojo/plugin/ManipulatorMojo.java

Modified: felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java?rev=759715&r1=759714&r2=759715&view=diff
==============================================================================
--- felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
(original)
+++ felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
Sun Mar 29 16:18:10 2009
@@ -801,7 +801,7 @@
      */
     private void setCreatedBy(Attributes att) {
         String prev = att.getValue("Created-By");
-        if (! prev.contains("iPOJO")) { // Avoid appending iPOJO several times
+        if (prev.indexOf("iPOJO") == -1) { // Avoid appending iPOJO several times
             att.putValue("Created-By", prev + " & iPOJO");
         }
     }

Modified: felix/trunk/ipojo/plugin/src/main/java/org/apache/felix/ipojo/plugin/ManipulatorMojo.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/plugin/src/main/java/org/apache/felix/ipojo/plugin/ManipulatorMojo.java?rev=759715&r1=759714&r2=759715&view=diff
==============================================================================
--- felix/trunk/ipojo/plugin/src/main/java/org/apache/felix/ipojo/plugin/ManipulatorMojo.java
(original)
+++ felix/trunk/ipojo/plugin/src/main/java/org/apache/felix/ipojo/plugin/ManipulatorMojo.java
Sun Mar 29 16:18:10 2009
@@ -121,7 +121,7 @@
     }
     
     private boolean isXML() {
-        return m_metadata != null && m_metadata.contains("<");
+        return m_metadata != null && (m_metadata.indexOf('<') > -1);
     }
 
     /**



Mime
View raw message