Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServer.java')
-rw-r--r--plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServer.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServer.java b/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServer.java
index 04338dff5..93b6f452f 100644
--- a/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServer.java
+++ b/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatServer.java
@@ -1,4 +1,3 @@
-package org.eclipse.jst.server.tomcat.core.internal;
/**********************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved.   This program and the accompanying materials
@@ -9,6 +8,8 @@ package org.eclipse.jst.server.tomcat.core.internal;
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
+package org.eclipse.jst.server.tomcat.core.internal;
+
import java.io.File;
import java.net.URL;
import java.util.ArrayList;
@@ -65,8 +66,8 @@ public class TomcatServer implements ITomcatServer, IStartableServer, IMonitorab
public TomcatRuntime getTomcatRuntime() {
if (server.getRuntime() == null)
return null;
- else
- return (TomcatRuntime) server.getRuntime().getDelegate();
+
+ return (TomcatRuntime) server.getRuntime().getDelegate();
}
public ITomcatVersionHandler getTomcatVersionHandler() {
@@ -81,8 +82,8 @@ public class TomcatServer implements ITomcatServer, IStartableServer, IMonitorab
IServerConfiguration configuration = server.getServerConfiguration();
if (configuration == null)
return null;
- else
- return (TomcatConfiguration) configuration.getDelegate();
+
+ return (TomcatConfiguration) configuration.getDelegate();
}
/**
@@ -95,8 +96,8 @@ public class TomcatServer implements ITomcatServer, IStartableServer, IMonitorab
public IPublisher getPublisher(List parents, IModule module) {
if (isTestEnvironment())
return null;
- else
- return new TomcatWebModulePublisher((IWebModule) module, server.getRuntime().getLocation());
+
+ return new TomcatWebModulePublisher((IWebModule) module, server.getRuntime().getLocation());
}
/**
@@ -502,8 +503,8 @@ public class TomcatServer implements ITomcatServer, IStartableServer, IMonitorab
ArrayList l = new ArrayList();
l.add(webModule);
return l;
- } else
- return null;
+ }
+ return null;
}
/**

Back to the top