Reformat only
authorJakub Skoczen <jakub@indexdata.dk>
Mon, 11 Feb 2013 10:43:11 +0000 (11:43 +0100)
committerJakub Skoczen <jakub@indexdata.dk>
Mon, 11 Feb 2013 10:43:11 +0000 (11:43 +0100)
src/main/java/org/yaz4j/ResultSet.java

index a60f9a5..e2df507 100644 (file)
@@ -6,8 +6,8 @@ import java.util.List;
 import java.util.NoSuchElementException;
 import org.yaz4j.exception.ZoomException;
 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_record_p;
-import org.yaz4j.jni.SWIGTYPE_p_p_ZOOM_record_p;
 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_resultset_p;
+import org.yaz4j.jni.SWIGTYPE_p_p_ZOOM_record_p;
 import org.yaz4j.jni.yaz4jlib;
 
 /**
@@ -83,25 +83,21 @@ public class ResultSet implements Iterable<Record> {
   }
   
   public List<Record> getRecords(long start, int count) throws ZoomException {
-       List<Record> out = new ArrayList<Record>(count);
-       
-       SWIGTYPE_p_p_ZOOM_record_p recs = yaz4jlib.new_zoomRecordArray(count);
-       yaz4jlib.ZOOM_resultset_records(resultSet, recs, start, count);
-       
-       for (int i = 0; i < count; i++) {
-               SWIGTYPE_p_ZOOM_record_p record = yaz4jlib.zoomRecordArray_getitem(recs, i);
-               if (record == null) {
-                       continue;
-               }
-               
-               int errorCode = yaz4jlib.ZOOM_record_error(record, null, null, null);
-           if (errorCode != 0) {
-             throw new ZoomException("Record excpetion, code " + errorCode);
-           }
-           
-           out.add(new Record(record, this));
-       }
-
+    List<Record> out = new ArrayList<Record>(count);
+    SWIGTYPE_p_p_ZOOM_record_p recs = yaz4jlib.new_zoomRecordArray(count);
+    yaz4jlib.ZOOM_resultset_records(resultSet, recs, start, count);
+    for (int i = 0; i < count; i++) {
+      SWIGTYPE_p_ZOOM_record_p record =
+        yaz4jlib.zoomRecordArray_getitem(recs, i);
+      if (record == null) {
+        continue;
+      }
+      int errorCode = yaz4jlib.ZOOM_record_error(record, null, null, null);
+      if (errorCode != 0) {
+        throw new ZoomException("Record excpetion, code " + errorCode);
+      }
+      out.add(new Record(record, this));
+    }
     return out;
   }