Skip to content

Commit d64d116

Browse files
committed
fmt
1 parent cbcffb0 commit d64d116

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/databricks/jdbc/core/DatabricksStatement.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ protected static boolean shouldReturnResultSet(String query) {
618618
trimmedQuery = trimmedQuery.replaceAll("/\\*.*?\\*/", "");
619619
trimmedQuery = trimmedQuery.replaceAll("\\s+", " ").trim();
620620

621-
622621
// Check if the query matches any of the patterns that return a ResultSet
623622
if (SELECT_PATTERN.matcher(trimmedQuery).find()
624623
|| SHOW_PATTERN.matcher(trimmedQuery).find()

src/test/java/com/databricks/jdbc/core/DatabricksStatementTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.Properties;
2121
import java.util.concurrent.CompletableFuture;
2222
import java.util.concurrent.TimeUnit;
23-
import org.junit.jupiter.api.Test;;
23+
import org.junit.jupiter.api.Test;
2424
import org.junit.jupiter.api.extension.ExtendWith;
2525
import org.mockito.Mock;
2626
import org.mockito.junit.jupiter.MockitoExtension;
@@ -458,7 +458,8 @@ public void testShouldReturnResultSet_SingleAndMultiLineComments() {
458458

459459
@Test
460460
public void testShouldReturnResultSet_CommentSurroundingQuery() {
461-
String query = "-- Single-line comment\n/* Multi-line comment */ SELECT * FROM table; /* Another comment */ -- End comment";
461+
String query =
462+
"-- Single-line comment\n/* Multi-line comment */ SELECT * FROM table; /* Another comment */ -- End comment";
462463
assertTrue(DatabricksStatement.shouldReturnResultSet(query));
463464
}
464465
}

0 commit comments

Comments
 (0)