Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-02-05 10:41:53 +0000
committerEike Stepper2010-02-05 10:41:53 +0000
commit9945444baa1a2cb3c7a49859b9845567d527a1fd (patch)
treece4f3db07c43b86e19b55a5ca245638b42a5a46d /plugins/org.gastro.inventory.edit
parent89bdb56d4cf31e285c34f0f76654760e5b2c105c (diff)
downloadcdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.tar.gz
cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.tar.xz
cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.zip
fixed warnings
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, 23 insertions, 1 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 0dbbf4565a..a27601a724 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,27 +457,49 @@ 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