1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-12 19:45:22 +02:00

[releng] Fix Java 1.5 dependency String.replace(String, String)

This commit is contained in:
Martin Oberhuber 2010-12-23 15:52:07 +00:00
parent bfc22c0427
commit b6dfb3bb26

View file

@ -244,7 +244,7 @@ public class ScpFileAttr {
mTime = parseDateTime(dateField); mTime = parseDateTime(dateField);
/* The rest of the entry is name ( and may be symlink ) */ /* The rest of the entry is name ( and may be symlink ) */
String[] namesplit = Pattern.compile( String[] namesplit = Pattern.compile(
dateField.replace(" ", "\\s+") + "\\s").split(lsString); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ dateField.replaceAll(" ", "\\s+") + "\\s").split(lsString); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
if (namesplit.length != 2) if (namesplit.length != 2)
return; return;
name = namesplit[1]; name = namesplit[1];