]> WPIA git - gigi.git/blobdiff - lib/jetty/org/eclipse/jetty/server/InclusiveByteRange.java
updating jetty to jetty-9.2.16.v2016040
[gigi.git] / lib / jetty / org / eclipse / jetty / server / InclusiveByteRange.java
index cb81d3c95e0a308e22906fdc897b6ef4ef3f3733..4340cabba65d1a4b3e67fd6e746e5ceb448e648a 100644 (file)
@@ -1,6 +1,6 @@
 //
 //  ========================================================================
-//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+//  Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
 //  ------------------------------------------------------------------------
 //  All rights reserved. This program and the accompanying materials
 //  are made available under the terms of the Eclipse Public License v1.0
@@ -81,7 +81,7 @@ public class InclusiveByteRange
      * @param size Size of the resource.
      * @return LazyList of satisfiable ranges
      */
-    public static List<InclusiveByteRange> satisfiableRanges(Enumeration headers, long size)
+    public static List<InclusiveByteRange> satisfiableRanges(Enumeration<String> headers, long size)
     {
         Object satRanges=null;
         
@@ -89,7 +89,7 @@ public class InclusiveByteRange
     headers:
         while (headers.hasMoreElements())
         {
-            String header = (String) headers.nextElement();
+            String header = headers.nextElement();
             StringTokenizer tok = new StringTokenizer(header,"=,",false);
             String t=null;
             try