File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

removing unnecessary import from jsp AND java

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator

Hi!
I am using IBM VisualAge 4.0 doing a Web-application with jsp's. I want to delete unnecessary import statements from both, the jsp files and the java classes.
Yet I found a few tools which work fine for java files (IntelliJ IDE, WoodenChair import+). The Problem here is that these tools do not take in consideration the java code in the jsp's and screw up.
Does anyone know a tool that could help me? Or is the win of having proper import statements too less to bother?
thx for your help!
greets andreas
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13046
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Extra import statements will only affect the compilation of the JSP, I don't think it is worth fooling with to save compilation time. However, in terms of documenting your code, useless import statements could cause some future programmer annoyance when he or she can't figure out what you are doing.
Bill
 
Sandeep Jain
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Having etra statement does not make any differece . Because all of them are not included in the file at the Runtime when u make an object of the required class , the class is then looked up and is taken .
Its not like # include pre-prossor libaries.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic