Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

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.eclipse.net4j.ui.defs
parent89bdb56d4cf31e285c34f0f76654760e5b2c105c (diff)
downloadcdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.tar.gz
cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.tar.xz
cdo-9945444baa1a2cb3c7a49859b9845567d527a1fd.zip
fixed warnings
Diffstat (limited to 'plugins/org.eclipse.net4j.ui.defs')
-rw-r--r--plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/impl/Net4JUIDefsPackageImpl.java6
-rw-r--r--plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java4
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:

Back to the top