mbien commented on code in PR #8826:
URL: https://github.com/apache/netbeans/pull/8826#discussion_r2369306799


##########
java/maven/src/org/netbeans/modules/maven/execute/model/NetbeansActionMapping.java:
##########
@@ -391,4 +392,71 @@ public String getModelEncoding()
     {
         return modelEncoding;
     }
+
+    @Override
+    public int hashCode() {
+        int hash = 7;
+        hash = 89 * hash + Objects.hashCode(this.actionName);
+        hash = 89 * hash + Objects.hashCode(this.displayName);
+        hash = 89 * hash + (this.recursive ? 1 : 0);
+        hash = 89 * hash + Objects.hashCode(this.packagings);
+        hash = 89 * hash + Objects.hashCode(this.goals);
+        hash = 89 * hash + Objects.hashCode(this.properties);
+        hash = 89 * hash + Objects.hashCode(this.options);
+        hash = 89 * hash + Objects.hashCode(this.activatedProfiles);
+        hash = 89 * hash + Objects.hashCode(this.basedir);
+        hash = 89 * hash + Objects.hashCode(this.preAction);
+        hash = 89 * hash + Objects.hashCode(this.reactor);
+        hash = 89 * hash + Objects.hashCode(this.modelEncoding);
+        return hash;

Review Comment:
   I did let NB generate those two methods since me writing this by hand has 
always the risk that I overlook something. At some point we should improve the 
code gen for newer APIs.
   
   re: its exported friend API and the POJO is mutable atm, not sure if it is 
worth converting to record.



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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to