Browse Source

Ooops. Bad IDEA configuration ruined the imports.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273225 13f79535-47bb-0310-9956-ffa450edef68
remotes/1776816827838153613/tmp_25f451bd36ab3145e487fcb2cd5c62c571e5b602
Stephane Bailliez 24 years ago
parent
commit
b996094b4f
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java

+ 8
- 5
src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java View File

@@ -55,7 +55,10 @@ package org.apache.tools.ant.taskdefs.cvslib;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.Date;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.TimeZone;

/**
* A class used to parse the output of the CVS log command.
@@ -72,7 +75,7 @@ class ChangeLogParser {
private static final int GET_PREVIOUS_REV = 5;

/** input format for dates read in from cvs log */
private static final SimpleDateFormat c_inputDate
private static final SimpleDateFormat c_inputDate
= new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");

static {
@@ -145,13 +148,13 @@ class ChangeLogParser {
if (line.startsWith("======")) {
//We have ended changelog for that particular file
//so we can save it
final int end
final int end
= m_comment.length() - lineSeparator.length(); //was -1
m_comment = m_comment.substring(0, end);
saveEntry();
m_status = GET_FILE;
} else if (line.startsWith("----------------------------")) {
final int end
final int end
= m_comment.length() - lineSeparator.length(); //was -1
m_comment = m_comment.substring(0, end);
m_status = GET_PREVIOUS_REV;
@@ -214,7 +217,7 @@ class ChangeLogParser {
*/
private void processGetPreviousRevision(final String line) {
if (!line.startsWith("revision")) {
throw new IllegalStateException("Unexpected line from CVS: "
throw new IllegalStateException("Unexpected line from CVS: "
+ line);
}
m_previousRevision = line.substring(9);


Loading…
Cancel
Save