VampireAchao commented on code in PR #3295:
URL: 
https://github.com/apache/incubator-streampark/pull/3295#discussion_r1378512133


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/ProjectService.java:
##########
@@ -54,7 +54,7 @@ public interface ProjectService extends IService<Project> {
 
   String getAppConfPath(Long id, String module);
 
-  List<Application> getApplications(Project project);
+  List<Application> list(Project project);
 
-  boolean checkExists(Project project);
+  boolean exists(Project project);

Review Comment:
   Difference:
   ```java
   void checkExists(Project project) {
       if (notExists) {
           throw new ProjectNotExistsException();
       }
   }
   ```
   
   As a result:
   ```java
   if (!exists(project)) {
       throw new ProjectNotExistsException();
   }
   ```
   
   Alternatively, it could be simplified as:
   ```java
   checkExist(project);
   ```
   
   This approach is preferred since the "exists" method merely returns a 
boolean value, which enhances clarity and conciseness.



-- 
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]

Reply via email to