Fixed wrong substring computation.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol committed 2003-11-16 14:30:06 +00:00
1 parent 3dddb25646
commit 686bc30790
1 file changed
+2 -2
@@ -59,7 +59,7 @@ package org.apache.maven.changes;
/**
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
*
* @version $Id: IssueFinder.java,v 1.1 2003/11/15 20:13:08 vmassol Exp $
* @version $Id: IssueFinder.java,v 1.2 2003/11/16 14:30:06 vmassol Exp $
*/
public class IssueFinder
{
@@ -80,7 +80,7 @@ public class IssueFinder
String baseURL;
int pos = trackerURL.lastIndexOf("/");
if (pos > 0) {
baseURL = trackerURL.substring(0, pos - 1);
baseURL = trackerURL.substring(0, pos);
} else {
throw new RuntimeException("Failed to extract tracker URL from ["
+ trackerURL + "]");