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 112304 - import statement should be added only if needed
Summary: import statement should be added only if needed
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 13:30 UTC by Lukas Jungmann
Modified: 2007-10-17 00:56 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 Lukas Jungmann 2007-08-08 13:30:17 UTC
-have some rest ws
-d'n'd some strikeirons ws from a palette to it

=> import javax.ws.rs.QueryParam; is added to the class

-d'n'd another strikeirons ws from a palette to it

=> import javax.ws.rs.QueryParam; is added to the class again, so one have two import statements for the same class in
his rest ws
Comment 1 Nam Nguyen 2007-08-31 08:04:27 UTC
Peter please see if you could detect existing import statements.
Comment 2 Peter Liu 2007-08-31 23:57:59 UTC
Fix checked into nb6 trunk.

IDE:-------------------------------------------------
IDE: [8/31/07 3:57 PM] Committing "RESTful Web Service Support" started
Checking in JavaSourceHelper.java;
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/support/JavaSourceHelper.java,v  <--  JavaSourceHelper.java
new revision: 1.46; previous revision: 1.45
done
IDE: [8/31/07 3:57 PM] Committing "RESTful Web Service Support" finished


Comment 3 Lukas Jungmann 2007-10-17 00:56:56 UTC
v.