Refactor.
[yaz4j-moved-to-github.git] / src / main / java / org / yaz4j / ScanSet.java
index 2140cc5..e34cebf 100644 (file)
@@ -17,7 +17,7 @@ public class ScanSet {
     }
 
     public void finalize() {
-        dispose();
+        _dispose();
     }
 
     public ScanTerm get(long index) {
@@ -34,7 +34,7 @@ public class ScanSet {
         return yaz4jlib.ZOOM_scanset_size(scanSet);
     }
 
-    public void dispose() {
+    void _dispose() {
         if (!disposed) {
             yaz4jlib.ZOOM_scanset_destroy(scanSet);
             connection = null;