james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r663030 - /james/server/trunk/spring-deployment/src/main/java/org/apache/james/container/spring/beanfactory/AvalonWebApplicationContext.java
Date Wed, 04 Jun 2008 08:28:34 GMT
Author: bago
Date: Wed Jun  4 01:28:33 2008
New Revision: 663030

URL: http://svn.apache.org/viewvc?rev=663030&view=rev
Log:
Fix java 1.4 compatibility in spring-deployment module. String.contains(CharSequence) replaced
with String.indexOf(String)

Modified:
    james/server/trunk/spring-deployment/src/main/java/org/apache/james/container/spring/beanfactory/AvalonWebApplicationContext.java

Modified: james/server/trunk/spring-deployment/src/main/java/org/apache/james/container/spring/beanfactory/AvalonWebApplicationContext.java
URL: http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/java/org/apache/james/container/spring/beanfactory/AvalonWebApplicationContext.java?rev=663030&r1=663029&r2=663030&view=diff
==============================================================================
--- james/server/trunk/spring-deployment/src/main/java/org/apache/james/container/spring/beanfactory/AvalonWebApplicationContext.java
(original)
+++ james/server/trunk/spring-deployment/src/main/java/org/apache/james/container/spring/beanfactory/AvalonWebApplicationContext.java
Wed Jun  4 01:28:33 2008
@@ -48,7 +48,7 @@
         if (locationStrings == null) locationStrings = new String[] {"/WEB-INF/james-assembly.xml",
"/WEB-INF/spring-beans.xml"};
         for (int i = 0; i < locationStrings.length; i++) {
             String locationString = locationStrings[i];
-            if (locationString.contains("james-assembly")) jamesAssemblyResources.add(getResourceByPath(locationString));
+            if (locationString.indexOf("james-assembly") != -1) jamesAssemblyResources.add(getResourceByPath(locationString));
             else springBeanLocations.add(locationString);
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message