Skip to content

Commit eea09f7

Browse files
github-actionsgithub-actions
authored andcommitted
Formatted with Google Java Formatter
1 parent ffd6ab4 commit eea09f7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/main/java/com/examplehub/sorts/HeapSort.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.examplehub.utils.SortUtils;
44

5-
public class HeapSort implements Sort{
5+
public class HeapSort implements Sort {
66

77
@Override
88
public void sort(int[] numbers) {
@@ -57,7 +57,7 @@ public <T extends Comparable<T>> void sort(T[] array) {
5757
}
5858
}
5959

60-
public <T extends Comparable<T>>void heapInsert(T[] numbers) {
60+
public <T extends Comparable<T>> void heapInsert(T[] numbers) {
6161
for (int i = 0; i < numbers.length; ++i) {
6262
int currentIndex = i;
6363
int parentIndex = (currentIndex - 1) / 2;

src/test/java/com/examplehub/sorts/HeapSortTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package com.examplehub.sorts;
22

3+
import static org.junit.jupiter.api.Assertions.assertTrue;
4+
35
import com.examplehub.domain.Student;
46
import com.examplehub.utils.RandomUtils;
57
import com.examplehub.utils.SortUtils;
8+
import java.util.Arrays;
69
import org.junit.jupiter.api.BeforeEach;
710
import org.junit.jupiter.api.Test;
811

9-
import java.util.Arrays;
10-
11-
import static org.junit.jupiter.api.Assertions.assertTrue;
12-
1312
class HeapSortTest {
1413

1514
private Sort sort;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy