]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaw
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 16 Sep 2016 13:14:54 +0000 (15:14 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 16 Sep 2016 13:27:52 +0000 (15:27 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/IntArrayList.java

index 979c51882231103da607c3feee28601aa0b45578..34fcc2a89a20d91b98799489772ba16149f4027c 100644 (file)
@@ -108,7 +108,8 @@ class IntArrayList {
    */
   public boolean add(int e) {
     ensureCapacityInternal(size + 1);
-    elementData[size++] = e;
+    elementData[size] = e;
+    size++;
     return true;
   }