Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352947

Summary: GetRemoteFolderChildrenOperation implementation depends on the JDK specific
Product: [Technology] Subversive Reporter: Alexander Gurov <a.gurov>
Component: CoreAssignee: Igor Burilo <igor.burilo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alexander Gurov CLA 2011-07-24 08:00:46 EDT
Julien HENRY wrote:

In GetRemoteFolderChildrenOperation.java line 88, may I suggest to replace:

List<IRepositoryResource> newTmp = Arrays.asList(tmp);

by

List<IRepositoryResource> newTmp = new ArrayList<IRepositoryResource>(tmp.length);
newTmp.addAll(Arrays.asList(tmp));

Indeed Arrays.asList(tmp) seems to be immutable
Comment 1 Alexander Gurov CLA 2011-07-24 08:02:33 EDT
Fixed.