Skip to content

Commit 571e3ff

Browse files
committed
style: apply remaining clang formatting
1 parent ad88ef8 commit 571e3ff

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ public E remove(final int index) {
106106
if (index < 0 || index >= size) {
107107
throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size);
108108
}
109-
@SuppressWarnings("unchecked")
110-
E oldElement = (E) elements[index];
109+
@SuppressWarnings("unchecked") E oldElement = (E) elements[index];
111110
fastRemove(index);
112111
modCount++; // Increment modification count
113112
return oldElement;

src/test/java/com/thealgorithms/datastructures/dynamicarray/DynamicArrayTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,5 +274,4 @@ public void testContainsWithNull() {
274274

275275
assertTrue(array.contains(null));
276276
}
277-
278277
}

0 commit comments

Comments
 (0)