diff options
author | Markus Keller | 2015-12-18 16:52:22 +0000 |
---|---|---|
committer | Markus Keller | 2015-12-18 16:52:22 +0000 |
commit | 44ffb674b1a7697e1c665142e478fd9a59439027 (patch) | |
tree | 10e60676f227023c47e481c3666cabf35b426330 /org.eclipse.text/src | |
parent | 39962f1bdb7aa3001ae908f0e6e0bea00b9b3e78 (diff) | |
download | eclipse.platform.text-44ffb674b1a7697e1c665142e478fd9a59439027.tar.gz eclipse.platform.text-44ffb674b1a7697e1c665142e478fd9a59439027.tar.xz eclipse.platform.text-44ffb674b1a7697e1c665142e478fd9a59439027.zip |
Bug 478673 - made AbstractDocument methods accept wildcardsI20160105-1000I20160105-0800I20151229-0800I20151222-0800
Diffstat (limited to 'org.eclipse.text/src')
-rw-r--r-- | org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java b/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java index b9c734a50ba..2b1bd31b999 100644 --- a/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java +++ b/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java @@ -442,7 +442,7 @@ public abstract class AbstractDocument implements IDocument, IDocumentExtension, * @deprecated As of 3.4, replaced by {@link #computeIndexInPositionList(List, int, boolean)} */ @Deprecated - protected int computeIndexInPositionList(List<Position> positions, int offset) { + protected int computeIndexInPositionList(List<? extends Position> positions, int offset) { return computeIndexInPositionList(positions, offset, true); } @@ -457,7 +457,7 @@ public abstract class AbstractDocument implements IDocument, IDocumentExtension, * @return the computed index * @since 3.4 */ - protected int computeIndexInPositionList(List<Position> positions, int offset, boolean orderedByOffset) { + protected int computeIndexInPositionList(List<? extends Position> positions, int offset, boolean orderedByOffset) { if (positions.size() == 0) return 0; |