summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/IntArrayList.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/IntArrayList.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/IntArrayList.java
index 979c5188223..34fcc2a89a2 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/IntArrayList.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/IntArrayList.java
@@ -108,7 +108,8 @@ class IntArrayList {
*/
public boolean add(int e) {
ensureCapacityInternal(size + 1);
- elementData[size++] = e;
+ elementData[size] = e;
+ size++;
return true;
}