remove unused imports

This commit is contained in:
Sebastian Sdorra
2012-10-15 20:58:01 +02:00
parent 28623dc8f2
commit 9f5a8268e0

View File

@@ -54,9 +54,6 @@ import sonia.scm.util.Util;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
@@ -89,7 +86,7 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
*/
@Inject
public HgHookManager(ScmConfiguration configuration,
Provider<HttpClient> httpClientProvider)
Provider<HttpClient> httpClientProvider)
{
this.configuration = configuration;
this.configuration.addListener(this);
@@ -180,7 +177,7 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
if (logger.isDebugEnabled())
{
logger.debug(
"create hook url from configured base url because force base url is enabled");
"create hook url from configured base url because force base url is enabled");
}
hookUrl = createConfiguredUrl();
@@ -204,8 +201,8 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
if (logger.isWarnEnabled())
{
logger.warn(
"hook url {} from request does not work, try now localhost",
hookUrl);
"hook url {} from request does not work, try now localhost",
hookUrl);
}
hookUrl = createLocalUrl(request);
@@ -215,8 +212,8 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
if (logger.isWarnEnabled())
{
logger.warn(
"localhost hook url {} does not work, try now from configured base url",
hookUrl);
"localhost hook url {} does not work, try now from configured base url",
hookUrl);
}
hookUrl = createConfiguredUrl();
@@ -239,7 +236,7 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
private String createConfiguredUrl()
{
return HttpUtil.getUriWithoutEndSeperator(
configuration.getBaseUrl()).concat("/hook/hg/");
configuration.getBaseUrl()).concat("/hook/hg/");
}
/**
@@ -269,8 +266,8 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
if (logger.isErrorEnabled())
{
logger.error(
"disabling mercurial hooks, because hook url {} seems not to work",
hookUrl);
"disabling mercurial hooks, because hook url {} seems not to work",
hookUrl);
}
hookUrl = Util.EMPTY_STRING;