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


##########
ide/projectui/src/org/netbeans/modules/project/ui/zip/ExportZIP.java:
##########
@@ -477,7 +477,11 @@ public void actionPerformed(java.awt.event.ActionEvent 
evt) {
     private void zipButtonActionPerformed(java.awt.event.ActionEvent evt) 
{//GEN-FIRST:event_zipButtonActionPerformed
         JFileChooser fc = new JFileChooser();
         if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
-            zipField.setText(fc.getSelectedFile().getAbsolutePath());
+            String sf = fc.getSelectedFile().getAbsolutePath();
+            if(!sf.toLowerCase().endsWith(".zip")) {
+              sf += ".zip";
+            }

Review Comment:
   we use two space indentation (added space after `if` too):
   ```java
               if (!sf.toLowerCase().endsWith(".zip")) {
                   sf += ".zip";
               }
   ```
   could you update the commit and force push? I could do that too if needed.



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