Bug 519988 - Use varargs in invocations of DropTarget.setTransfer
Summary: Use varargs in invocations of DropTarget.setTransfer
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.9 M2   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2017-07-21 04:42 EDT by Lars Vogel CLA
Modified: 2018-07-31 09:55 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2017-07-21 04:42:41 EDT
See RepositoryReferenceSection.

target.setTransfer(new Transfer[] {URLTransfer.getInstance(), FileTransfer.getInstance()}); can be simplified to

target.setTransfer(URLTransfer.getInstance(), FileTransfer.getInstance());

In this bug you should search for similar usage and replace them all in PDE.

Please upload changes which contain ~10-20 classes to make review easier.
Comment 1 Vikas Chandra CLA 2018-03-13 04:49:01 EDT
Moving out of 4.8.

If you plan for 4.8, please triage back to 4.8 with a patch.
Comment 2 Eclipse Genie CLA 2018-06-28 04:21:27 EDT
New Gerrit change created: https://git.eclipse.org/r/125148
Comment 3 Lars Vogel CLA 2018-06-28 05:59:49 EDT
For cleanup we do not need bug reports anymore, so followup work will be done without bug reference.
Comment 5 Vikas Chandra CLA 2018-07-31 09:55:22 EDT
verified by code inspection