Commits

Sebastian Sdorra committed 4d6d09b

remove unused imports

Comments (0)

Files changed (1)

scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java

 
 import java.io.IOException;
 
-import java.net.HttpURLConnection;
-import java.net.URL;
-
 import java.util.UUID;
 
 import javax.servlet.http.HttpServletRequest;
    */
   @Inject
   public HgHookManager(ScmConfiguration configuration,
-                       Provider<HttpClient> httpClientProvider)
+    Provider<HttpClient> httpClientProvider)
   {
     this.configuration = configuration;
     this.configuration.addListener(this);
       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();
         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);
           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();
   private String createConfiguredUrl()
   {
     return HttpUtil.getUriWithoutEndSeperator(
-        configuration.getBaseUrl()).concat("/hook/hg/");
+      configuration.getBaseUrl()).concat("/hook/hg/");
   }
 
   /**
     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;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.