diff options
author | Eike Stepper | 2010-02-05 10:41:53 +0000 |
---|---|---|
committer | Eike Stepper | 2010-02-05 10:41:53 +0000 |
commit | 9945444baa1a2cb3c7a49859b9845567d527a1fd (patch) | |
tree | ce4f3db07c43b86e19b55a5ca245638b42a5a46d /plugins/org.eclipse.net4j.ui.defs | |
parent | 89bdb56d4cf31e285c34f0f76654760e5b2c105c (diff) | |
download | cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.tar.gz cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.tar.xz cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.zip |
fixed warnings
Diffstat (limited to 'plugins/org.eclipse.net4j.ui.defs')
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/impl/Net4JUIDefsPackageImpl.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/impl/Net4JUIDefsPackageImpl.java index 9a3ca98a12..7830e79554 100644 --- a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/impl/Net4JUIDefsPackageImpl.java +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/impl/Net4JUIDefsPackageImpl.java @@ -74,7 +74,9 @@ public class Net4JUIDefsPackageImpl extends EPackageImpl implements Net4JUIDefsP public static Net4JUIDefsPackage init() { if (isInited) + { return (Net4JUIDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4JUIDefsPackage.eNS_URI); + } // Obtain or create and register package Net4JUIDefsPackageImpl theNet4JUIDefsPackage = (Net4JUIDefsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Net4JUIDefsPackageImpl ? EPackage.Registry.INSTANCE @@ -136,7 +138,9 @@ public class Net4JUIDefsPackageImpl extends EPackageImpl implements Net4JUIDefsP public void createPackageContents() { if (isCreated) + { return; + } isCreated = true; // Create classes and their features @@ -159,7 +163,9 @@ public class Net4JUIDefsPackageImpl extends EPackageImpl implements Net4JUIDefsP public void initializePackageContents() { if (isInitialized) + { return; + } isInitialized = true; // Initialize package diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java index 9598283213..30cf9de782 100644 --- a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java @@ -99,9 +99,13 @@ public class Net4JUIDefsSwitch<T> InteractiveCredentialsProviderDef interactiveCredentialsProviderDef = (InteractiveCredentialsProviderDef)theEObject; T result = caseInteractiveCredentialsProviderDef(interactiveCredentialsProviderDef); if (result == null) + { result = caseDef(interactiveCredentialsProviderDef); + } if (result == null) + { result = defaultCase(theEObject); + } return result; } default: |