Community
Participate
Working Groups
I20100810-0800 From JUnitAddLibraryProposal#addToClasspath(..): IClasspathEntry[] oldEntries= project.getRawClasspath(); for (int i= 0; i < oldEntries.length; i++) { IClasspathEntry curr= oldEntries[i]; ... becomes: for (IClasspathEntry oldEntrie : oldEntries) { IClasspathEntry curr= oldEntrie; 1.) oldEntrie should be oldEntry (InternalNamingConventions#suggestVariableNames(..) converts to plural. We should convert to singular here. Implementation should probably go to JDT/Core). 2.) intermediate variable 'curr' is unnecessary See also bug 214765.
Another unnecessary parameter is in Resources#checkInSync(IResource[]). A further problem is in NewTestCaseWizardPageTwo#getCheckedMethods(): for (int i = 0; i < fCheckedObjects.length; i++) { if (fCheckedObjects[i] instanceof IMethod) ... becomes: for (Object fCheckedObject : fCheckedObjects) { if (fCheckedObject instanceof IMethod) => Code Style of org.eclipse.jdt.junit says that field prefix is 'f', so this should be removed from the generated variable name if necessary.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.