You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "anirudh-hegde (via GitHub)" <gi...@apache.org> on 2024/01/11 17:08:33 UTC

[PR] [immutable][optionValues] made optionValues list immutable [seatunnel]

anirudh-hegde opened a new pull request, #6188:
URL: https://github.com/apache/seatunnel/pull/6188

   ### Purpose of this pull request
   made optionValues list immutable to prevent unintended modifications outside the class.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on code in PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#discussion_r1519386782


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/constants/JobMode.java:
##########
@@ -17,7 +17,9 @@
 
 package org.apache.seatunnel.common.constants;
 
-public enum JobMode {
+import java.io.Serializable;
+
+public enum JobMode implements Serializable {

Review Comment:
   revert
   
   
   <img width="664" alt="image" src="https://github.com/apache/seatunnel/assets/14371345/ccc1f135-d489-4909-96ae-d2395b8ca1a9">



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#issuecomment-1889289674

   > > hi, @anirudh-hegde Run 'mvn spotless:apply' to fix these violations.
   > 
   > So I should clone seatunnel project and then run 'mvn spotless:apply' to fix these violations. Please correct me if I'm wrong.
   
   To fix these formatting issues, you just need to run the command on your own branch and then commit the code again. It will automatically correct these formatting errors


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [immutable][optionValues] made optionValues list immutable [seatunnel]

Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#issuecomment-1888753641

   hi, @anirudh-hegde Run 'mvn spotless:apply' to fix these violations.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "anirudh-hegde (via GitHub)" <gi...@apache.org>.
anirudh-hegde commented on code in PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#discussion_r1519747596


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/constants/JobMode.java:
##########
@@ -17,7 +17,9 @@
 
 package org.apache.seatunnel.common.constants;
 
-public enum JobMode {
+import java.io.Serializable;
+
+public enum JobMode implements Serializable {

Review Comment:
   ![image](https://github.com/apache/seatunnel/assets/105560839/5452646f-b234-4bab-b7cc-ce8fcc78bc76)
   In the above history which to revert



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "anirudh-hegde (via GitHub)" <gi...@apache.org>.
anirudh-hegde commented on PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#issuecomment-1889275024

   > hi, @anirudh-hegde Run 'mvn spotless:apply' to fix these violations.
   
   So I should clone seatunnel project and then run 'mvn spotless:apply' to fix these violations.
   Please correct me if I'm wrong.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on code in PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#discussion_r1520817215


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/constants/JobMode.java:
##########
@@ -17,7 +17,9 @@
 
 package org.apache.seatunnel.common.constants;
 
-public enum JobMode {
+import java.io.Serializable;
+
+public enum JobMode implements Serializable {

Review Comment:
   ```suggestion
   public enum JobMode {
   ```



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on code in PR #6188:
URL: https://github.com/apache/seatunnel/pull/6188#discussion_r1520816673


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/constants/JobMode.java:
##########
@@ -17,7 +17,9 @@
 
 package org.apache.seatunnel.common.constants;
 
-public enum JobMode {
+import java.io.Serializable;
+
+public enum JobMode implements Serializable {

Review Comment:
   revert this file uodates: `JobMode.java`



##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/constants/JobMode.java:
##########
@@ -17,7 +17,9 @@
 
 package org.apache.seatunnel.common.constants;
 
-public enum JobMode {
+import java.io.Serializable;
+
+public enum JobMode implements Serializable {

Review Comment:
   revert this file updates: `JobMode.java`



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][API] made optionValues list immutable [seatunnel]

Posted by "anirudh-hegde (via GitHub)" <gi...@apache.org>.
anirudh-hegde closed pull request #6188: [Improve][API] made optionValues list immutable
URL: https://github.com/apache/seatunnel/pull/6188


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org