Skip to content

Commit 71a33a8

Browse files
authored
Revert "Improvements | Remove unnecessary semicolons (#856)"
This reverts commit 493759a.
1 parent 64304c8 commit 71a33a8

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/DataTypes.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ else if (!sendStringParametersAsUnicode && fromJavaType == JavaType.BYTEARRAY
606606
return false;
607607
return setterConversionAEMap.get(fromJavaType).contains(toJDBCType);
608608
}
609-
}
609+
};
610610

611611
}
612612

@@ -799,7 +799,7 @@ private SetterConversion(JDBCType.Category from, EnumSet<JDBCType.Category> to)
799799
static boolean converts(JDBCType fromJDBCType, JDBCType toJDBCType) {
800800
return conversionMap.get(fromJDBCType.category).contains(toJDBCType.category);
801801
}
802-
}
802+
};
803803

804804
boolean convertsTo(JDBCType jdbcType) {
805805
return SetterConversion.converts(this, jdbcType);
@@ -898,7 +898,7 @@ private UpdaterConversion(JDBCType.Category from, EnumSet<SSType.Category> to) {
898898
static boolean converts(JDBCType fromJDBCType, SSType toSSType) {
899899
return conversionMap.get(fromJDBCType.category).contains(toSSType.category);
900900
}
901-
}
901+
};
902902

903903
boolean convertsTo(SSType ssType) {
904904
return UpdaterConversion.converts(this, ssType);
@@ -1076,7 +1076,7 @@ private NormalizationAE(JDBCType from, EnumSet<SSType> to) {
10761076
static boolean converts(JDBCType fromJDBCType, SSType toSSType) {
10771077
return normalizationMapAE.get(fromJDBCType).contains(toSSType);
10781078
}
1079-
}
1079+
};
10801080

10811081
boolean normalizationCheck(SSType ssType) {
10821082
return NormalizationAE.converts(this, ssType);

src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ private final class HostNameOverrideX509TrustManager implements X509TrustManager
13671367
this.logContext = tdsChannel.toString() + " (HostNameOverrideX509TrustManager):";
13681368
defaultTrustManager = tm;
13691369
// canonical name is in lower case so convert this to lowercase too.
1370-
this.hostName = hostName.toLowerCase(Locale.ENGLISH);
1370+
this.hostName = hostName.toLowerCase(Locale.ENGLISH);;
13711371
}
13721372

13731373
// Parse name in RFC 2253 format
@@ -1542,7 +1542,7 @@ enum SSLHandhsakeState {
15421542
SSL_HANDHSAKE_NOT_STARTED,
15431543
SSL_HANDHSAKE_STARTED,
15441544
SSL_HANDHSAKE_COMPLETE
1545-
}
1545+
};
15461546

15471547
/**
15481548
* Enables SSL Handshake.
@@ -6163,7 +6163,7 @@ final public String toString() {
61636163
final boolean isEOM() {
61646164
return TDS.STATUS_BIT_EOM == (header[TDS.PACKET_HEADER_MESSAGE_STATUS] & TDS.STATUS_BIT_EOM);
61656165
}
6166-
}
6166+
};
61676167

61686168

61696169
/**

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class BulkColumnMetaData {
224224
this.jdbcType = bulkColumnMetaData.jdbcType;
225225
this.cryptoMeta = cryptoMeta;
226226
}
227-
}
227+
};
228228

229229
/**
230230
* A map to store the metadata information for the destination table.

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5971,7 +5971,7 @@ public void onEviction(CityHash128Key key, PreparedStatementHandle handle) {
59715971
boolean isAzureDW() throws SQLServerException, SQLException {
59725972
if (null == isAzureDW) {
59735973
try (Statement stmt = this.createStatement();
5974-
ResultSet rs = stmt.executeQuery("SELECT CAST(SERVERPROPERTY('EngineEdition') as INT)")) {
5974+
ResultSet rs = stmt.executeQuery("SELECT CAST(SERVERPROPERTY('EngineEdition') as INT)");) {
59755975
// SERVERPROPERTY('EngineEdition') can be used to determine whether the db server is SQL Azure.
59765976
// It should return 6 for SQL Azure DW. This is more reliable than @@version or
59775977
// serverproperty('edition').

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ public int[] executeBatch() throws SQLServerException, BatchUpdateException, SQL
19721972
stmtColumnEncriptionSetting);
19731973
SQLServerResultSet rs = stmt
19741974
.executeQueryInternal("sp_executesql N'SET FMTONLY ON SELECT * FROM "
1975-
+ Util.escapeSingleQuotes(tableName) + " '")) {
1975+
+ Util.escapeSingleQuotes(tableName) + " '");) {
19761976
if (null != columnList && columnList.size() > 0) {
19771977
if (columnList.size() != valueList.size()) {
19781978
throw new IllegalArgumentException(
@@ -2129,7 +2129,7 @@ public long[] executeLargeBatch() throws SQLServerException, BatchUpdateExceptio
21292129
stmtColumnEncriptionSetting);
21302130
SQLServerResultSet rs = stmt
21312131
.executeQueryInternal("sp_executesql N'SET FMTONLY ON SELECT * FROM "
2132-
+ Util.escapeSingleQuotes(tableName) + " '")) {
2132+
+ Util.escapeSingleQuotes(tableName) + " '");) {
21332133
if (null != columnList && columnList.size() > 0) {
21342134
if (columnList.size() != valueList.size()) {
21352135
throw new IllegalArgumentException(

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ enum State {
24112411
OFFSET,
24122412
QUOTE,
24132413
PROCESS
2414-
}
2414+
};
24152415

24162416
// This pattern matches the LIMIT syntax with an OFFSET clause. The driver does not support OFFSET expression in the
24172417
// LIMIT clause.

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerSymmetricKeyCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import java.util.concurrent.ConcurrentHashMap;
1515
import java.util.concurrent.Executors;
1616
import java.util.concurrent.ScheduledExecutorService;
17-
import java.util.concurrent.ThreadFactory;
17+
import java.util.concurrent.ThreadFactory;;
1818

1919

2020
class CacheClear implements Runnable {

src/main/java/com/microsoft/sqlserver/jdbc/SimpleInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private static int nextLoggingID() {
3737
}
3838

3939
static final java.util.logging.Logger logger = java.util.logging.Logger
40-
.getLogger("com.microsoft.sqlserver.jdbc.internals.InputStream");
40+
.getLogger("com.microsoft.sqlserver.jdbc.internals.InputStream");;
4141
private String traceID;
4242

4343
final public String toString() {

src/main/java/com/microsoft/sqlserver/jdbc/TVP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum MPIState {
6363
MPI_LookForNextCharOrSeparator,
6464
MPI_ParseQuote,
6565
MPI_RightQuote,
66-
}
66+
};
6767

6868
void initTVP(TVPType type, String tvpPartName) throws SQLServerException {
6969
tvpType = type;

0 commit comments

Comments
 (0)