peterreilly 2005/06/29 07:58:10 Modified: src/main/org/apache/tools/ant/taskdefs/optional/i18n Translate.java Log: checkstyle - line length Revision Changes Path 1.40 +6 -5 ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java Index: Translate.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- Translate.java 6 Jan 2005 12:05:08 -0000 1.39 +++ Translate.java 29 Jun 2005 14:58:10 -0000 1.40 @@ -548,20 +548,21 @@ while (startIndex >= 0 && (startIndex + startToken.length()) <= line.length()) { // the new value, this needs to be here - // because it is required to calculate the next position to search from - // at the end of the loop + // because it is required to calculate the next position to + // search from at the end of the loop String replace = null; // we found a starttoken, is there an endtoken following? // start at token+tokenlength because start and end // token may be indentical - int endIndex = line.indexOf(endToken, startIndex + startToken.length()); + int endIndex = line.indexOf( + endToken, startIndex + startToken.length()); if (endIndex < 0) { startIndex += 1; } else { // grab the token - String token - = line.substring(startIndex + startToken.length(), endIndex); + String token = line.substring( + startIndex + startToken.length(), endIndex); // If there is a white space or = or :, then // it isn't to be treated as a valid key.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]