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 - Struts Action Class - File Template Import Ordering
Summary: Struts Action Class - File Template Import Ordering
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: pslechta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-05 02:01 UTC by adam_myatt
Modified: 2009-05-13 18:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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