From d245598f75413ddccae5e414d72bbc8d03835e27 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 14 Nov 2011 08:55:06 +0100 Subject: [PATCH] remove unused antlr dependency --- scm-webapp/pom.xml | 9 --------- .../scm/api/rest/resources/RepositoryResource.java | 14 ++++++++------ 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/scm-webapp/pom.xml b/scm-webapp/pom.xml index 87bace12c8..b4375a626c 100644 --- a/scm-webapp/pom.xml +++ b/scm-webapp/pom.xml @@ -33,15 +33,6 @@ provided - - - - org.antlr - antlr - 3.4 - provided - - sonia.scm scm-core diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java index 3a1d79d320..247d739742 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java @@ -35,8 +35,6 @@ package sonia.scm.api.rest.resources; //~--- non-JDK imports -------------------------------------------------------- -import antlr.StringUtils; - import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; @@ -422,11 +420,12 @@ public class RepositoryResource *
  • 404 not found, if the repository or the path could not be found
  • *
  • 500 internal server error
  • * - * + * * @param id the id of the repository + * @param path * @param start the start value for paging * @param limit the limit value for paging - * + * * @return * * @throws IOException @@ -446,10 +445,13 @@ public class RepositoryResource try { ChangesetPagingResult changesets; - if ("".equals(path)) { + + if ("".equals(path)) + { changesets = changesetViewerUtil.getChangesets(id, start, limit); } - else { + else + { changesets = changesetViewerUtil.getChangesets(id, path, start, limit); }