Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeExtensionManager.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeTypeManager.java8
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeEnumTypeManager.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/service/AttributeAdapterServiceImpl.java6
4 files changed, 9 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeExtensionManager.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeExtensionManager.java
index 567a8bc2cac..4a236951b1d 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeExtensionManager.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeExtensionManager.java
@@ -106,7 +106,7 @@ public class AttributeExtensionManager {
}
private Map<String, Pair<String, String>> loadExtensions(String extensionPointId, String[] elementNames, String classNameAttribute) throws OseeStateException {
- Map<String, Pair<String, String>> toReturn = new HashMap<String, Pair<String, String>>();
+ Map<String, Pair<String, String>> toReturn = new HashMap<>();
for (String elementName : elementNames) {
List<IConfigurationElement> elements = ExtensionPoints.getExtensionElements(extensionPointId, elementName);
for (IConfigurationElement element : elements) {
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeTypeManager.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeTypeManager.java
index a8838a6d092..9e02e0828d7 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeTypeManager.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeTypeManager.java
@@ -54,7 +54,7 @@ public class AttributeTypeManager {
public static Collection<IAttributeType> getValidAttributeTypes(IOseeBranch branchToken) throws OseeCoreException {
Branch branch = getBranchCache().get(branchToken);
- Set<IAttributeType> attributeTypes = new HashSet<IAttributeType>(100);
+ Set<IAttributeType> attributeTypes = new HashSet<>(100);
for (ArtifactType artifactType : ArtifactTypeManager.getAllTypes()) {
attributeTypes.addAll(artifactType.getAttributeTypes(branch));
}
@@ -66,7 +66,7 @@ public class AttributeTypeManager {
}
public static Collection<IAttributeType> getTaggableTypes() throws OseeCoreException {
- Collection<IAttributeType> taggableTypes = new ArrayList<IAttributeType>();
+ Collection<IAttributeType> taggableTypes = new ArrayList<>();
for (AttributeType type : getAllTypes()) {
if (type.isTaggable()) {
taggableTypes.add(type);
@@ -76,7 +76,7 @@ public class AttributeTypeManager {
}
public static Collection<IAttributeType> getSingleMultiplicityTypes() throws OseeCoreException {
- Collection<IAttributeType> types = new ArrayList<IAttributeType>();
+ Collection<IAttributeType> types = new ArrayList<>();
for (AttributeType type : getAllTypes()) {
if (type.getMaxOccurrences() == 1) {
types.add(type);
@@ -132,7 +132,7 @@ public class AttributeTypeManager {
}
public static Map<String, String> getEnumerationValueDescriptions(IAttributeType attributeType) throws OseeCoreException {
- Map<String, String> values = new HashMap<String, String>();
+ Map<String, String> values = new HashMap<>();
for (OseeEnumEntry entry : AttributeTypeManager.getType(attributeType).getOseeEnumType().values()) {
values.put(entry.getName(), entry.getDescription());
}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeEnumTypeManager.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeEnumTypeManager.java
index e74b677899f..88a2cc475d4 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeEnumTypeManager.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeEnumTypeManager.java
@@ -45,7 +45,7 @@ public class OseeEnumTypeManager {
}
public static Collection<String> getAllTypeNames() throws OseeCoreException {
- List<String> items = new ArrayList<String>();
+ List<String> items = new ArrayList<>();
for (OseeEnumType types : getAllTypes()) {
items.add(types.getName());
}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/service/AttributeAdapterServiceImpl.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/service/AttributeAdapterServiceImpl.java
index 064e75be7ae..b8977aac990 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/service/AttributeAdapterServiceImpl.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/service/AttributeAdapterServiceImpl.java
@@ -37,10 +37,10 @@ public class AttributeAdapterServiceImpl implements AttributeAdapterService {
private Thread thread;
public AttributeAdapterServiceImpl() {
- registered = new ConcurrentHashMap<String, AttributeAdapter<?>>();
- pending = new CopyOnWriteArrayList<ServiceReference<AttributeAdapter<?>>>();
+ registered = new ConcurrentHashMap<>();
+ pending = new CopyOnWriteArrayList<>();
- adapterByType = new ConcurrentHashMap<IAttributeType, AttributeAdapter<?>>();
+ adapterByType = new ConcurrentHashMap<>();
}
public void start() {

Back to the top