frankgh commented on code in PR #348:
URL: https://github.com/apache/cassandra-sidecar/pull/348#discussion_r3247443315
##########
server/src/main/java/org/apache/cassandra/sidecar/utils/CassandraInputValidator.java:
##########
@@ -57,7 +60,19 @@ public interface CassandraInputValidator
* @throws NullPointerException when the {@code snapshotName} is {@code
null}
* @throws CassandraInputException when the {@code snapshotName} contains
invalid characters in the name
*/
- String validateSnapshotName(@NotNull String snapshotName);
+ default String validateSnapshotName(@NotNull String snapshotName)
+ {
Review Comment:
moved implementation to default implementation in the interface.
`RegexBasedCassandraInputValidator` didn't seem the appropriate place for a
non-regex validation
--
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]