mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 21:15:23 +02:00
[cleanup] Fix warnings
This commit is contained in:
parent
565407b960
commit
ae94f40b47
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ class RemoteExporter {
|
||||||
public void createFolder(IPath destinationPath) {
|
public void createFolder(IPath destinationPath) {
|
||||||
// IFS: use IFSJaveFile object if necessary
|
// IFS: use IFSJaveFile object if necessary
|
||||||
if (_host != null)
|
if (_host != null)
|
||||||
new UniFilePlus(Utilities.getIRemoteFile((IHost) _host, destinationPath.toString())).mkdir();
|
new UniFilePlus(Utilities.getIRemoteFile(_host, destinationPath.toString())).mkdir();
|
||||||
else
|
else
|
||||||
new File(destinationPath.toOSString()).mkdir();
|
new File(destinationPath.toOSString()).mkdir();
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ class RemoteExporter {
|
||||||
* @throws SystemMessageException TODO
|
* @throws SystemMessageException TODO
|
||||||
*/
|
*/
|
||||||
protected void writeFile(IFile file, IPath destinationPath) throws IOException, CoreException, SystemMessageException {
|
protected void writeFile(IFile file, IPath destinationPath) throws IOException, CoreException, SystemMessageException {
|
||||||
IRemoteFileSubSystem rfss = RemoteFileUtility.getFileSubSystem((IHost) _host);
|
IRemoteFileSubSystem rfss = RemoteFileUtility.getFileSubSystem(_host);
|
||||||
String dest = destinationPath.toString();
|
String dest = destinationPath.toString();
|
||||||
char sep = rfss.getSeparatorChar();
|
char sep = rfss.getSeparatorChar();
|
||||||
if (sep != '/')
|
if (sep != '/')
|
||||||
|
|
Loading…
Add table
Reference in a new issue