mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 00:05:53 +02:00
Added //$NON-NLS-1$ tags to FTPHostFile.java to avoid warnings
This commit is contained in:
parent
ac3fef760c
commit
9e643f1f2b
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ public class FTPHostFile implements IHostFile
|
||||||
_size = ftpFile.getSize();
|
_size = ftpFile.getSize();
|
||||||
_isArchive = internalIsArchive();
|
_isArchive = internalIsArchive();
|
||||||
|
|
||||||
if(!systemName.toUpperCase().startsWith("WINDOWS"))
|
if(!systemName.toUpperCase().startsWith("WINDOWS")) //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
_canRead = ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION);
|
_canRead = ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION);
|
||||||
_canWrite = ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.WRITE_PERMISSION);
|
_canWrite = ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.WRITE_PERMISSION);
|
||||||
|
@ -111,7 +111,7 @@ public class FTPHostFile implements IHostFile
|
||||||
return getName();
|
return getName();
|
||||||
} else {
|
} else {
|
||||||
StringBuffer path = new StringBuffer(getParentPath());
|
StringBuffer path = new StringBuffer(getParentPath());
|
||||||
if (!_parentPath.endsWith("/"))
|
if (!_parentPath.endsWith("/")) //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
path.append('/');
|
path.append('/');
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ public class FTPHostFile implements IHostFile
|
||||||
|
|
||||||
public void renameTo(String newAbsolutePath)
|
public void renameTo(String newAbsolutePath)
|
||||||
{
|
{
|
||||||
int i = newAbsolutePath.lastIndexOf("/");
|
int i = newAbsolutePath.lastIndexOf("/"); //$NON-NLS-1$
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
{
|
{
|
||||||
_name = newAbsolutePath;
|
_name = newAbsolutePath;
|
||||||
|
|
Loading…
Add table
Reference in a new issue