Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-09-25 08:23:58 +0000
committerEike Stepper2011-09-25 08:23:58 +0000
commit53f0bebdc539db62a911cc27dff34cd49e135ee2 (patch)
treea34440a27b6385077fa072e2ecd68c392e83818b /plugins/org.gastro.inventory.edit
parente324acc45cf0942c7972a6a496b75c45418b982d (diff)
downloadcdo-53f0bebdc539db62a911cc27dff34cd49e135ee2.tar.gz
cdo-53f0bebdc539db62a911cc27dff34cd49e135ee2.tar.xz
cdo-53f0bebdc539db62a911cc27dff34cd49e135ee2.zip
upgrade to EMF 2.8drops/I20110925-0426
Diffstat (limited to 'plugins/org.gastro.inventory.edit')
-rw-r--r--plugins/org.gastro.inventory.edit/src/org/gastro/inventory/provider/InventoryItemProviderAdapterFactory.java24
1 files changed, 1 insertions, 23 deletions
diff --git a/plugins/org.gastro.inventory.edit/src/org/gastro/inventory/provider/InventoryItemProviderAdapterFactory.java b/plugins/org.gastro.inventory.edit/src/org/gastro/inventory/provider/InventoryItemProviderAdapterFactory.java
index e24b6d285c..635d3cf606 100644
--- a/plugins/org.gastro.inventory.edit/src/org/gastro/inventory/provider/InventoryItemProviderAdapterFactory.java
+++ b/plugins/org.gastro.inventory.edit/src/org/gastro/inventory/provider/InventoryItemProviderAdapterFactory.java
@@ -404,7 +404,7 @@ public class InventoryItemProviderAdapterFactory extends InventoryAdapterFactory
if (isFactoryForType(type))
{
Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || ((Class<?>)type).isInstance(adapter))
+ if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter)))
{
return adapter;
}
@@ -457,49 +457,27 @@ public class InventoryItemProviderAdapterFactory extends InventoryAdapterFactory
public void dispose()
{
if (stockItemProvider != null)
- {
stockItemProvider.dispose();
- }
if (stockProductItemProvider != null)
- {
stockProductItemProvider.dispose();
- }
if (recipeItemProvider != null)
- {
recipeItemProvider.dispose();
- }
if (ingredientItemProvider != null)
- {
ingredientItemProvider.dispose();
- }
if (menuCardItemProvider != null)
- {
menuCardItemProvider.dispose();
- }
if (restaurantItemProvider != null)
- {
restaurantItemProvider.dispose();
- }
if (departmentItemProvider != null)
- {
departmentItemProvider.dispose();
- }
if (offeringItemProvider != null)
- {
offeringItemProvider.dispose();
- }
if (tableItemProvider != null)
- {
tableItemProvider.dispose();
- }
if (employeeItemProvider != null)
- {
employeeItemProvider.dispose();
- }
if (sectionItemProvider != null)
- {
sectionItemProvider.dispose();
- }
}
}

Back to the top