You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2021/10/08 18:22:20 UTC

[GitHub] [netbeans] sdedic commented on a change in pull request #3223: Handle dots in class name by treating the prefix as a package structure

sdedic commented on a change in pull request #3223:
URL: https://github.com/apache/netbeans/pull/3223#discussion_r725217366



##########
File path: platform/openide.util/src/org/netbeans/modules/openide/util/NbBundleProcessor.java
##########
@@ -378,7 +378,7 @@ private void warnUndocumented(int i, Element e, String key) {
                 }
             }
         }
-        processingEnv.getMessager().printMessage(Kind.WARNING, "Undocumented format parameter {" + i + "}", e, mirror, value);
+        processingEnv.getMessager().printMessage(Kind.WARNING, "Undocumented format parameter {" + i + "} prepend line: # {" + i + "} - some text,", e, mirror, value);

Review comment:
       Separate into its own commit ?

##########
File path: java/java.source/src/org/netbeans/modules/java/JavaDataObject.java
##########
@@ -90,6 +93,30 @@ protected DataObject handleCopyRename(DataFolder df, String name, String ext) th
     public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
         return new MultiViewEditorElement(context);
     }
+
+    @Override
+    protected DataObject handleCreateFromTemplate(DataFolder df, String name) throws IOException {
+        if (name == null) {
+            return super.handleCreateFromTemplate(df, name);
+        }
+        String[] packageAndName = name.split("\\.");
+        if (packageAndName.length > 1) {
+            verifyJavaNames(packageAndName);

Review comment:
       nitpick - may possibly accept `package-info` as a valid package name.




-- 
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: notifications-unsubscribe@netbeans.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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