Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-12-18 11:52:22 -0500
committerMarkus Keller2015-12-18 11:52:22 -0500
commit44ffb674b1a7697e1c665142e478fd9a59439027 (patch)
tree10e60676f227023c47e481c3666cabf35b426330 /org.eclipse.text
parent39962f1bdb7aa3001ae908f0e6e0bea00b9b3e78 (diff)
downloadeclipse.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')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java4
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 b9c734a50..2b1bd31b9 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;

Back to the top