blambov commented on code in PR #2896:
URL: https://github.com/apache/cassandra/pull/2896#discussion_r1448561328
##########
test/unit/org/apache/cassandra/cql3/statements/DescribeStatementTest.java:
##########
@@ -462,11 +463,18 @@ public void testDescribeCluster() throws Throwable
assertRowsNet(executeDescribeNet(KEYSPACE_PER_TEST, "DESCRIBE
CLUSTER"),
row("Test Cluster",
- "ByteOrderedPartitioner",
+
trimIfPresent(DatabaseDescriptor.getPartitionerName(),
"org.apache.cassandra.dht."),
Review Comment:
Works as an implementation of `trimIfPresent` (`src.replaceFirst("^" +
Pattern.quote(begin), "")`), but the current code is IMHO a little more obvious.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]