Skip to content

Commit 5e825c8

Browse files
committed
[misc] code style correction
1 parent 5b2a40c commit 5e825c8

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/main/java/org/mariadb/jdbc/BasePreparedStatement.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,8 @@ public void setNull(int parameterIndex, int sqlType, String typeName) throws SQL
890890
@Override
891891
public void setURL(int parameterIndex, URL x) throws SQLException {
892892
checkIndex(parameterIndex);
893-
parameters.set(parameterIndex - 1, new Parameter<>(StringCodec.INSTANCE, x == null ? null : x.toString()));
893+
parameters.set(
894+
parameterIndex - 1, new Parameter<>(StringCodec.INSTANCE, x == null ? null : x.toString()));
894895
}
895896

896897
/**

src/main/java/org/mariadb/jdbc/util/CharsetEncodingLength.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ public final class CharsetEncodingLength {
1010

1111
// This array stored character length for every collation
1212
// query to generate:
13-
// SELECT CONCAT(' maxCharlen.put(',id, ', ', maxlen, ');') FROM (
14-
// SELECT id, maxlen
15-
// from information_schema.character_sets, information_schema.collations
16-
// where character_sets.character_set_name = collations.character_set_name
17-
// UNION
18-
// select id, maxlen
19-
// from information_schema.character_sets, information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
20-
// where character_sets.character_set_name = COLLATION_CHARACTER_SET_APPLICABILITY.character_set_name
21-
// order by id) sub
13+
// SELECT CONCAT(' maxCharlen.put(',id, ', ', maxlen, ');') FROM (
14+
// SELECT id, maxlen
15+
// from information_schema.character_sets, information_schema.collations
16+
// where character_sets.character_set_name = collations.character_set_name
17+
// UNION
18+
// select id, maxlen
19+
// from information_schema.character_sets,
20+
// information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
21+
// where character_sets.character_set_name =
22+
// COLLATION_CHARACTER_SET_APPLICABILITY.character_set_name
23+
// order by id) sub
2224

2325
public static final Map<Integer, Integer> maxCharlen;
2426

src/main/java/org/mariadb/jdbc/util/Version.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ public String getQualifier() {
8585
* @return true if version is greater than parameters
8686
*/
8787
public boolean versionFixedMajorMinorGreaterOrEqual(int major, int minor, int patch) {
88-
if (this.majorVersion == major && this.minorVersion == minor && this.patchVersion >= patch) {
89-
return true;
90-
}
91-
return false;
88+
return this.majorVersion == major && this.minorVersion == minor && this.patchVersion >= patch;
9289
}
9390

9491
/**

0 commit comments

Comments
 (0)