mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-10 10:35:23 +02:00
Cosmetics.
This commit is contained in:
parent
d51e079951
commit
ede6b65479
1 changed files with 3 additions and 9 deletions
|
@ -13,7 +13,6 @@
|
||||||
package org.eclipse.cdt.core.parser;
|
package org.eclipse.cdt.core.parser;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.InputStream;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
|
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
|
||||||
import org.eclipse.cdt.core.index.IIndexFileLocation;
|
import org.eclipse.cdt.core.index.IIndexFileLocation;
|
||||||
|
@ -139,14 +138,9 @@ public abstract class FileContent {
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
long fileReadTime = System.currentTimeMillis();
|
long fileReadTime = System.currentTimeMillis();
|
||||||
String path = reader.getPath();
|
|
||||||
File file = new File(path);
|
|
||||||
|
|
||||||
CharArray chars = new CharArray(reader.buffer);
|
CharArray chars = new CharArray(reader.buffer);
|
||||||
|
String filePath = reader.getPath();
|
||||||
|
File file = new File(filePath);
|
||||||
FileContent fileContent = new InternalFileContent(path, chars , file.lastModified(), file.length(), fileReadTime);
|
return new InternalFileContent(filePath, chars, file.lastModified(), file.length(), fileReadTime);
|
||||||
|
|
||||||
return fileContent;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue