Relax constructor parameters of EGit operations
commit6b6c3ca05a66811b4910267549d1a5b90bd7620a
authorRemy Suen <remysuen@ca.ibm.com>
Thu, 13 May 2010 02:37:10 +0000 (12 22:37 -0400)
committerRemy Suen <remysuen@ca.ibm.com>
Thu, 13 May 2010 02:37:10 +0000 (12 22:37 -0400)
tree377c81a6f6261619a80e3365da73e2e4d5448ee5
parente1b0a72f34ed00da4f66397edd4f044cef477a27
Relax constructor parameters of EGit operations

Certain EGit operations takes a Collection<IResource> as a
parameter in its constructor. The problem with this type is that
one cannot pass in a Collection<IFile> or a Collection<IFolder>.
Instead, you are forced to alter your existing collection into one
for IResources. The fix is to alter these constructors so that they
take a Collection<? extends IResource> instead.

Change-Id: I93acf875107596b7eb08d76aaf69f13ed0cab524
org.eclipse.egit.core/src/org/eclipse/egit/core/op/AddToIndexOperation.java
org.eclipse.egit.core/src/org/eclipse/egit/core/op/AssumeUnchangedOperation.java
org.eclipse.egit.core/src/org/eclipse/egit/core/op/UntrackOperation.java
org.eclipse.egit.core/src/org/eclipse/egit/core/op/UpdateOperation.java