|
1 | 1 | /* |
2 | | - * Copyright 2001-2004 The Apache Software Foundation. |
| 2 | + * Copyright 2001-2005 The Apache Software Foundation. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
79 | 79 | * @author Martin Cooper |
80 | 80 | * @author <a href="mailto:jeremias@apache.org">Jeremias Maerki</a> |
81 | 81 | * @author Stephen Colebourne |
82 | | - * @version $Id: FilenameUtils.java,v 1.32 2004/12/10 22:36:56 scolebourne Exp $ |
| 82 | + * @version $Id$ |
83 | 83 | * @since Commons IO 1.1 |
84 | 84 | */ |
85 | 85 | public class FilenameUtils { |
@@ -922,16 +922,16 @@ static String[] splitOnTokens(String text) { |
922 | 922 | ArrayList list = new ArrayList(); |
923 | 923 | StringBuffer buffer = new StringBuffer(); |
924 | 924 | for (int i = 0; i < array.length; i++) { |
925 | | - if (array[i] == '?' || array[i] == '*') { |
926 | | - if (buffer.length() != 0) { |
927 | | - list.add(buffer.toString()); |
928 | | - buffer.setLength(0); |
929 | | - } |
930 | | - list.add(new String(new char[] { array[i] })); |
931 | | - } else { |
932 | | - buffer.append(array[i]); |
933 | | - } |
934 | | - } |
| 925 | + if (array[i] == '?' || array[i] == '*') { |
| 926 | + if (buffer.length() != 0) { |
| 927 | + list.add(buffer.toString()); |
| 928 | + buffer.setLength(0); |
| 929 | + } |
| 930 | + list.add(new String(new char[] { array[i] })); |
| 931 | + } else { |
| 932 | + buffer.append(array[i]); |
| 933 | + } |
| 934 | + } |
935 | 935 | if (buffer.length() != 0) { |
936 | 936 | list.add(buffer.toString()); |
937 | 937 | } |
|
0 commit comments