mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
fix potential bugs
This commit is contained in:
@@ -220,13 +220,13 @@ public class RepositoryResource extends AbstractResource<Repository>
|
||||
|
||||
String ctxPath = request.getContextPath();
|
||||
|
||||
url.append(ctxPath);
|
||||
|
||||
if (ctxPath.endsWith("/"))
|
||||
{
|
||||
ctxPath = ctxPath.substring(0, ctxPath.length() - 1);
|
||||
}
|
||||
|
||||
url.append(ctxPath);
|
||||
|
||||
RepositoryHandler handler =
|
||||
repositoryManager.getHandler(repository.getType());
|
||||
|
||||
|
||||
@@ -39,15 +39,23 @@ import sonia.scm.web.plugin.WebResource;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
public class WebResourceComparator implements Comparator<WebResource>
|
||||
public class WebResourceComparator
|
||||
implements Comparator<WebResource>, Serializable
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
private static final long serialVersionUID = -5916499507958881372L;
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user