svn commit: r1798560 - /tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit: r1798560 - /tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java

violetagg
Author: violetagg
Date: Tue Jun 13 06:24:57 2017
New Revision: 1798560

URL: http://svn.apache.org/viewvc?rev=1798560&view=rev
Log:
Collections.emptyEnumeration() does not exist in java 6, use alternative.

Modified:
    tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java

Modified: tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java?rev=1798560&r1=1798559&r2=1798560&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java (original)
+++ tomcat/tc7.0.x/trunk/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java Tue Jun 13 06:24:57 2017
@@ -80,7 +80,8 @@ public class TestCrawlerSessionManagerVa
         if (isBot) {
             setter.andReturn(session);
         }
-        EasyMock.expect(request.getHeaders("user-agent")).andReturn(Collections.<String>emptyEnumeration());
+        EasyMock.expect(request.getHeaders("user-agent"))
+                .andReturn(Collections.enumeration(Collections.<String>emptyList()));
         return request;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...