Browse Source

remove redundant attribute.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271723 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
555a14e43e
1 changed files with 3 additions and 8 deletions
  1. +3
    -8
      src/main/org/apache/tools/ant/PathTokenizer.java

+ 3
- 8
src/main/org/apache/tools/ant/PathTokenizer.java View File

@@ -88,11 +88,6 @@ public class PathTokenizer {
*/
private boolean onNetWare = Os.isFamily("netware");

/**
* This will be used for String comparisons of the path Separator later
*/
private String pathSeparatorStr = String.valueOf(File.pathSeparatorChar);

/**
* Flag to indicate whether or not we are running on a platform with a
* DOS style filesystem
@@ -174,7 +169,7 @@ public class PathTokenizer {
else {
// we are on NetWare, tokenizing is handled a little differently,
// due to the fact that NetWare has multiple-character volume names.
if (token.equals(pathSeparatorStr)) {
if (token.equals(File.pathSeparator)) {
// ignore ";" and get the next token
token = tokenizer.nextToken().trim();
}
@@ -184,12 +179,12 @@ public class PathTokenizer {
String nextToken = tokenizer.nextToken().trim();
// make sure we aren't going to get the path separator next
if (!nextToken.equals(pathSeparatorStr)) {
if (!nextToken.equals(File.pathSeparator)) {
if (nextToken.equals(":")) {
if (!token.startsWith("/") && !token.startsWith("\\")){
// it indeed is a drive spec, get the next bit
String oneMore = tokenizer.nextToken().trim();
if (!oneMore.equals(pathSeparatorStr)) {
if (!oneMore.equals(File.pathSeparator)) {
token += ":" + oneMore;
}
else {


Loading…
Cancel
Save