File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed
main/java/com/datastax/oss/driver/internal/core
test/java/com/datastax/oss/driver/internal/core/context Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments