Skip to content

Commit 0dce526

Browse files
Cleanup
1 parent 9bba5ea commit 0dce526

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

core/src/main/java/com/datastax/oss/driver/internal/core/context/DefaultDriverContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ public ProtocolVersion getProtocolVersion() {
10121012
@NonNull
10131013
@Override
10141014
public Map<String, String> getStartupOptions() {
1015-
// startup options are calculated dynamically and maj vary per connection
1015+
// startup options are calculated dynamically and may vary per connection
10161016
return startupOptionsRef.get().build();
10171017
}
10181018

core/src/main/java/com/datastax/oss/driver/internal/core/util/Strings.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,6 @@ public static String doubleQuote(String value) {
8181
return quote(value, '"');
8282
}
8383

84-
/**
85-
* Double quote the given string; double quotes are escaped. If the given string is null, this
86-
* method returns ({@code null}).
87-
*
88-
* @param value The value to double quote.
89-
* @return The double quoted string.
90-
*/
91-
public static String doubleQuoteNullable(String value) {
92-
if (value == null) return null;
93-
return quote(value, '"');
94-
}
95-
9684
/**
9785
* Unquote the given string if it is double quoted; double quotes are unescaped. If the given
9886
* string is not double quoted, it is returned without any modification.

core/src/test/java/com/datastax/oss/driver/internal/core/context/StartupOptionsBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private DefaultDriverContext buildMockedContext(String compression) {
4141
DriverExecutionProfile defaultProfile = mock(DriverExecutionProfile.class);
4242
when(defaultProfile.getString(DefaultDriverOption.PROTOCOL_COMPRESSION, "none"))
4343
.thenReturn(compression);
44-
when(defaultProfile.getName()).thenReturn("a_profile");
44+
when(defaultProfile.getName()).thenReturn(DriverExecutionProfile.DEFAULT_NAME);
4545
return MockedDriverContextFactory.defaultDriverContext(defaultProfile);
4646
}
4747

0 commit comments

Comments
 (0)