[ 
https://issues.apache.org/jira/browse/NETBEANS-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sukma updated NETBEANS-1570:
----------------------------
    Description: 
Hello,

I have created protected class and put all of those class on the same package. 
I encounter warning from the NetBeans that I have "Import From The Same 
Package" warnings. I tried to delete the import class, but when I tried to save 
my class the package keep imported again.

This issue happen when I enable *Organize Imports* setting on the Window -> 
Option menu, section Editor -> On Save where Language is Java.

Is this the correct behaviour of *Organize Imports*? Because I thought it don't 
need to import from the same package.

  was:
Hello,

I have created protected class and put all of those class on the same package. 
I encounter warning from the NetBeans that I have "Import From The Same 
Package" warnings. I tried to delete the import class, but when I tried to save 
my class the package keep imported again.

Do this is because of my NetBeans configuration? Thought, I just do fresh 
install and not config anything.


> Can't Remove Import From The Same Package
> -----------------------------------------
>
>                 Key: NETBEANS-1570
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1570
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Editor
>    Affects Versions: 9.0
>            Reporter: Sukma
>            Priority: Major
>
> Hello,
> I have created protected class and put all of those class on the same 
> package. I encounter warning from the NetBeans that I have "Import From The 
> Same Package" warnings. I tried to delete the import class, but when I tried 
> to save my class the package keep imported again.
> This issue happen when I enable *Organize Imports* setting on the Window -> 
> Option menu, section Editor -> On Save where Language is Java.
> Is this the correct behaviour of *Organize Imports*? Because I thought it 
> don't need to import from the same package.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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