Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordwagelaar2017-01-18 15:08:39 -0500
committerdwagelaar2017-01-18 15:08:39 -0500
commitbd1d80d98ab000f5c1a8e3bc0b86ab91acbb91e3 (patch)
treedfd38d948e81143105688860cb1aa5cac3fb5944 /plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse
parentb0b3c5229fb05e79e3bfb919db06160d4b3c43ea (diff)
downloadorg.eclipse.atl-bd1d80d98ab000f5c1a8e3bc0b86ab91acbb91e3.tar.gz
org.eclipse.atl-bd1d80d98ab000f5c1a8e3bc0b86ab91acbb91e3.tar.xz
org.eclipse.atl-bd1d80d98ab000f5c1a8e3bc0b86ab91acbb91e3.zip
Fix includingRange() for Long.
Diffstat (limited to 'plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyBag.java4
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyList.java6
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyOrderedSet.java2
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyBag.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyBag.java
index 7e830301..926741f4 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyBag.java
+++ b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyBag.java
@@ -277,8 +277,8 @@ public class LazyBag<E> extends LazyCollection<E> {
*/
@Override
public boolean contains(Object o) {
- if (o instanceof Integer) {
- final Integer obj = (Integer) o;
+ if (o instanceof Long) {
+ final Long obj = (Long) o;
return (obj >= first && obj <= last);
}
return false;
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyList.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyList.java
index ff14823a..ae2a71b3 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyList.java
+++ b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyList.java
@@ -1380,8 +1380,8 @@ public class LazyList<E> extends LazyCollection<E> implements EList<E> {
*/
@Override
public boolean contains(Object o) {
- if (o instanceof Integer) {
- final Integer obj = (Integer) o;
+ if (o instanceof Long) {
+ final Long obj = (Long) o;
return (obj >= first && obj <= last);
}
return false;
@@ -2133,7 +2133,7 @@ public class LazyList<E> extends LazyCollection<E> implements EList<E> {
return union((LazyList<E>) new IntegerRangeList((Integer) first, (Integer) last));
}
if (first instanceof Long && last instanceof Long) {
- return union((LazyList<E>) new LongRangeList((Integer) first, (Integer) last));
+ return union((LazyList<E>) new LongRangeList((Long) first, (Long) last));
}
throw new IllegalArgumentException(String.format("includingRange() not supported for arguments of type %s and %s", first.getClass()
.getName(), last.getClass().getName()));
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyOrderedSet.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyOrderedSet.java
index 31843c50..632ade5d 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyOrderedSet.java
+++ b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/LazyOrderedSet.java
@@ -2516,7 +2516,7 @@ public class LazyOrderedSet<E> extends LazyCollection<E> implements Set<E>, List
return union((LazyOrderedSet<E>) new IntegerRangeOrderedSet((Integer) first, (Integer) last));
}
if (first instanceof Long && last instanceof Long) {
- return union((LazyOrderedSet<E>) new LongRangeOrderedSet((Integer) first, (Integer) last));
+ return union((LazyOrderedSet<E>) new LongRangeOrderedSet((Long) first, (Long) last));
}
throw new IllegalArgumentException(String.format("includingRange() not supported for arguments of type %s and %s", first.getClass()
.getName(), last.getClass().getName()));

Back to the top