mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
remove unused imports
This commit is contained in:
@@ -54,9 +54,6 @@ import sonia.scm.util.Util;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.URL;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@@ -89,7 +86,7 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
|
|||||||
*/
|
*/
|
||||||
@Inject
|
@Inject
|
||||||
public HgHookManager(ScmConfiguration configuration,
|
public HgHookManager(ScmConfiguration configuration,
|
||||||
Provider<HttpClient> httpClientProvider)
|
Provider<HttpClient> httpClientProvider)
|
||||||
{
|
{
|
||||||
this.configuration = configuration;
|
this.configuration = configuration;
|
||||||
this.configuration.addListener(this);
|
this.configuration.addListener(this);
|
||||||
@@ -180,7 +177,7 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
|
|||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug(
|
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();
|
hookUrl = createConfiguredUrl();
|
||||||
@@ -204,8 +201,8 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
|
|||||||
if (logger.isWarnEnabled())
|
if (logger.isWarnEnabled())
|
||||||
{
|
{
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"hook url {} from request does not work, try now localhost",
|
"hook url {} from request does not work, try now localhost",
|
||||||
hookUrl);
|
hookUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
hookUrl = createLocalUrl(request);
|
hookUrl = createLocalUrl(request);
|
||||||
@@ -215,8 +212,8 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
|
|||||||
if (logger.isWarnEnabled())
|
if (logger.isWarnEnabled())
|
||||||
{
|
{
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"localhost hook url {} does not work, try now from configured base url",
|
"localhost hook url {} does not work, try now from configured base url",
|
||||||
hookUrl);
|
hookUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
hookUrl = createConfiguredUrl();
|
hookUrl = createConfiguredUrl();
|
||||||
@@ -239,7 +236,7 @@ public class HgHookManager implements ConfigChangedListener<ScmConfiguration>
|
|||||||
private String createConfiguredUrl()
|
private String createConfiguredUrl()
|
||||||
{
|
{
|
||||||
return HttpUtil.getUriWithoutEndSeperator(
|
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())
|
if (logger.isErrorEnabled())
|
||||||
{
|
{
|
||||||
logger.error(
|
logger.error(
|
||||||
"disabling mercurial hooks, because hook url {} seems not to work",
|
"disabling mercurial hooks, because hook url {} seems not to work",
|
||||||
hookUrl);
|
hookUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
hookUrl = Util.EMPTY_STRING;
|
hookUrl = Util.EMPTY_STRING;
|
||||||
|
|||||||
Reference in New Issue
Block a user