Skip to content

Commit b7aaac4

Browse files
authored
style: mark temp as final
1 parent 486e37a commit b7aaac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/sorts/SortUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private SortUtils() {
1818
*/
1919
public static <T> void swap(T[] array, int i, int j) {
2020
if (i != j) {
21-
T temp = array[i];
21+
final T temp = array[i];
2222
array[i] = array[j];
2323
array[j] = temp;
2424
}

0 commit comments

Comments
 (0)