replace Java 5.0 method with 1.4 equivalent
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 5 Oct 2005 16:29:14 +0000 (16:29 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 5 Oct 2005 16:29:14 +0000 (16:29 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1872 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/serviceprovider/AssertionConsumerServlet.java

index c3d36d1..d4a1503 100644 (file)
@@ -318,7 +318,7 @@ public class AssertionConsumerServlet extends HttpServlet {
         // Session object with the values from this Assertion.
         SessionManager sessionManager = context.getSessionManager();
         String emptySessionId = null;
-        if (!data.target.contains(":")) {
+        if (data.target.indexOf(':')==-1) {
             // The Target can be a URL or an Empty SessionId
             emptySessionId = data.target;
         }