Revision: 1817 http://archive-access.svn.sourceforge.net/archive-access/?rev=1817&view=rev Author: bradtofel Date: 2007-07-19 13:52:38 -0700 (Thu, 19 Jul 2007) Log Message: ----------- TWEAK: type safety. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/http/FileLocationDBClient.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/http/FileLocationDBClient.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/http/FileLocationDBClient.java 2007-07-19 20:51:58 UTC (rev 1816) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/http/FileLocationDBClient.java 2007-07-19 20:52:38 UTC (rev 1817) @@ -85,7 +85,8 @@ * @return Iterator of arc file names between marks start and end * @throws IOException */ - public Iterator getArcsBetweenMarks(long start, long end) throws IOException { + public Iterator<String> getArcsBetweenMarks(long start, long end) + throws IOException { NameValuePair[] args = { new NameValuePair( FileLocationDBServlet.OPERATION_ARGUMENT, @@ -284,7 +285,8 @@ long start = Long.parseLong(args[3]); long end = Long.parseLong(args[4]); try { - Iterator it = locationClient.getArcsBetweenMarks(start,end); + Iterator<String> it = + locationClient.getArcsBetweenMarks(start,end); while(it.hasNext()) { String next = (String) it.next(); System.out.println(next); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |