Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2015-12-24 11:22:00 -0500
committerBrian Vosburgh2015-12-24 11:22:00 -0500
commit32adccc3553d5bd836a0b20c3f2ba1c413b1e570 (patch)
tree469256404b879bdfda3febc1f22967c411c255b2
parent67058e4e505ebb1973a566480d9ae5fed2acaa1b (diff)
downloadwebtools.dali-32adccc3553d5bd836a0b20c3f2ba1c413b1e570.tar.gz
webtools.dali-32adccc3553d5bd836a0b20c3f2ba1c413b1e570.tar.xz
webtools.dali-32adccc3553d5bd836a0b20c3f2ba1c413b1e570.zip
fix compiler warnings in AbstractJpaContextModel
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java
index 7f2ebc2638..b7d21d5237 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java
@@ -300,7 +300,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
/**
* "Context" elements.
*/
- protected final Vector<C> elements = new Vector<C>();
+ protected final Vector<C> elements = new Vector<>();
/**
* Aspect name used for event notification when the
@@ -360,7 +360,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
* specified index.
*/
public Iterable<C> addContextElements(int index, Iterable<R> resourceElements) {
- ArrayList<C> contextElements = new ArrayList<C>();
+ ArrayList<C> contextElements = new ArrayList<>();
for (R resourceElement : resourceElements) {
contextElements.add(this.adapter.buildContextElement(resourceElement));
}
@@ -468,7 +468,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
protected void sync(boolean sync, IProgressMonitor monitor) {
@SuppressWarnings("unchecked")
HashSet<C> contextElements = (HashSet<C>) CollectionTools.hashSet(this.elements.toArray());
- ArrayList<C> contextElementsToSync = new ArrayList<C>(contextElements.size());
+ ArrayList<C> contextElementsToSync = new ArrayList<>(contextElements.size());
int resourceIndex = 0;
for (R resourceElement : this.adapter.getResourceElements()) {
@@ -594,7 +594,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
}
protected <C extends JpaContextModel, R> SpecifiedContextCollectionContainer<C, R> buildSpecifiedContextCollectionContainer(String aspectName, Container.Adapter<C, R> adapter) {
- return new SpecifiedContextCollectionContainer<C, R>(aspectName, adapter);
+ return new SpecifiedContextCollectionContainer<>(aspectName, adapter);
}
@@ -617,7 +617,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
}
protected <C extends JpaContextModel, R> VirtualContextCollectionContainer<C, R> buildVirtualContextCollectionContainer(String aspectName, Container.Adapter<C, R> adapter) {
- return new VirtualContextCollectionContainer<C, R>(aspectName, adapter);
+ return new VirtualContextCollectionContainer<>(aspectName, adapter);
}
@@ -740,7 +740,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
}
protected <C extends JpaContextModel, R> SpecifiedContextListContainer<C, R> buildSpecifiedContextListContainer(String aspectName, Container.Adapter<C, R> adapter) {
- return new SpecifiedContextListContainer<C, R>(aspectName, adapter);
+ return new SpecifiedContextListContainer<>(aspectName, adapter);
}
@@ -758,7 +758,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel>
}
protected <C extends JpaContextModel, R> VirtualContextListContainer<C, R> buildVirtualContextListContainer(String aspectName, Container.Adapter<C, R> adapter) {
- return new VirtualContextListContainer<C, R>(aspectName, adapter);
+ return new VirtualContextListContainer<>(aspectName, adapter);
}

Back to the top