This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157955

Summary: Struts Action Class - File Template Import Ordering
Product: javaee Reporter: adam_myatt <adam_myatt>
Component: StrutsAssignee: pslechta <pslechta>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description adam_myatt 2009-02-05 02:01:06 UTC
Correct the ordering of the Struts imports in the Action class file template. Many tools like Checkstyle and other 
static analysis tools report problems with classes where the import statements are not alphabetically ordered. The 
Struts Action template defines these imports (not included the javax.* stuff) :

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;

These imports are not alphabetically ordered correctly, causing tools like Checkstyle to throw warnings. These imports 
should be ordered as such:

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
Comment 1 pslechta 2009-05-13 18:20:39 UTC
Fixed.

http://hg.netbeans.org/main/rev/64dfee6f058c