RocMarshal commented on code in PR #2948:
URL:
https://github.com/apache/incubator-streampark/pull/2948#discussion_r1296014333
##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/entity/Resource.java:
##########
@@ -82,4 +82,29 @@ public class Resource implements Serializable {
private transient String sortOrder;
private transient String connector;
+
+ public void setResourcePath(String resourcePath) {
+ if (resourcePath == null) {
+ throw new IllegalArgumentException("resource path cannot be null.");
+ }
+ String[] namePath = resourcePath.split(":");
+ if (namePath.length != 2) {
Review Comment:
@ChengJie1053 Thx for the contribution~
Could we use Utils.require to replace lines `87`, `91` ?
--
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]