Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352947 - GetRemoteFolderChildrenOperation implementation depends on the JDK specific
Summary: GetRemoteFolderChildrenOperation implementation depends on the JDK specific
Status: RESOLVED FIXED
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Burilo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-24 08:00 EDT by Alexander Gurov CLA
Modified: 2011-07-24 08:02 EDT (History)
0 users

See Also:


Attachments

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