diff options
author | Ed Willink | 2018-04-05 14:06:32 +0000 |
---|---|---|
committer | Ed Willink | 2018-04-05 14:06:32 +0000 |
commit | 5ff4e839bde7b1652a192de254c46e33500c9f0c (patch) | |
tree | 9ef552f99dba67d10866c5b1f89b2465f97344de | |
parent | f7d7b833b79bb2024b82b60ed288f031a7d683cf (diff) | |
download | org.eclipse.qvtd-5ff4e839bde7b1652a192de254c46e33500c9f0c.tar.gz org.eclipse.qvtd-5ff4e839bde7b1652a192de254c46e33500c9f0c.tar.xz org.eclipse.qvtd-5ff4e839bde7b1652a192de254c46e33500c9f0c.zip |
[releng] Fix some warnings
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/evaluation/IterableAsSet.java b/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/evaluation/IterableAsSet.java index 1dec4bff9..060953649 100644 --- a/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/evaluation/IterableAsSet.java +++ b/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/evaluation/IterableAsSet.java @@ -36,7 +36,7 @@ class IterableAsSet<T> implements Set<T> } @Override - public boolean addAll(Collection<? extends T> c) { + public boolean addAll(@NonNull Collection<? extends T> c) { throw new UnsupportedOperationException(); } @@ -75,6 +75,7 @@ class IterableAsSet<T> implements Set<T> return Iterables.isEmpty(iterable); } + @SuppressWarnings("unchecked") @Override public @NonNull Iterator<T> iterator() { return (Iterator<T>) iterable.iterator(); diff --git a/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/internal/evaluation/LazyObjectManager.java b/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/internal/evaluation/LazyObjectManager.java index 55f48860f..90157a7f2 100644 --- a/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/internal/evaluation/LazyObjectManager.java +++ b/plugins/org.eclipse.qvtd.runtime/src/org/eclipse/qvtd/runtime/internal/evaluation/LazyObjectManager.java @@ -1009,7 +1009,7 @@ public class LazyObjectManager extends AbstractObjectManager upper = PivotConstantsInternal.ANNOTATED_IMPLICIT_OPPOSITE_UPPER_VALUE; } eOppositeReference2.setUpperBound(upper.isUnlimited() ? -1 : upper.intValue()); - if (!upper.equals(ValueUtil.ONE_VALUE)) { + if (!((IntegerValue)upper).equals(ValueUtil.ONE_VALUE)) { String uniqueValue = details.get("unique"); boolean isUnique = uniqueValue != null ? Boolean.valueOf(uniqueValue) : PivotConstantsInternal.ANNOTATED_IMPLICIT_OPPOSITE_UNIQUE; eOppositeReference2.setUnique(isUnique); |