Code cleanup : fix C style array declaration.
[TP_POO.git] / TP2 / Entiers.java
index b690d10426728590f0efa8365a448f1cd531baa6..6c840df0607600197d7e1d5a8494108ac8a483fe 100644 (file)
@@ -1,6 +1,10 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "05/03/2009"
+)
 class Entiers extends Structure {
-    private int int_array[];
+    private int[] int_array;
     private int array_size;
     private int current_size;
 
@@ -67,7 +71,7 @@ class Entiers extends Structure {
             return middle;
         else if (value > int_array[middle])
             return binarySearch((middle + 1), last, value);
-        return binarySearch(first, (middle -1), value);
+        return binarySearch(first, (middle - 1), value);
     }
 
     public boolean supprimer(int value) {
@@ -112,5 +116,4 @@ class Entiers extends Structure {
             current_size = 0;
         }
     }
-
 }