浏览代码

codacy: Unnecessary use of fully qualified name due to existing static import

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 年之前
父节点
当前提交
f8542da589
共有 1 个文件被更改,包括 6 次插入7 次删除
  1. 6 7
      src/main/java/com/owncloud/android/operations/CreateFolderOperation.java

+ 6 - 7
src/main/java/com/owncloud/android/operations/CreateFolderOperation.java

@@ -49,10 +49,9 @@ import java.util.UUID;
 import static com.owncloud.android.datamodel.OCFile.PATH_SEPARATOR;
 import static com.owncloud.android.datamodel.OCFile.ROOT_PATH;
 
-
 /**
- * Access to remote operation performing the creation of a new folder in the ownCloud server. Save the new folder in
- * Database
+ * Access to remote operation performing the creation of a new folder in the ownCloud server.
+ * Save the new folder in Database.
  */
 public class CreateFolderOperation extends SyncOperation implements OnRemoteOperationListener {
 
@@ -75,8 +74,8 @@ public class CreateFolderOperation extends SyncOperation implements OnRemoteOper
     @Override
     protected RemoteOperationResult run(OwnCloudClient client) {
         String remoteParentPath = new File(getRemotePath()).getParent();
-        remoteParentPath = remoteParentPath.endsWith(OCFile.PATH_SEPARATOR) ?
-            remoteParentPath : remoteParentPath + OCFile.PATH_SEPARATOR;
+        remoteParentPath = remoteParentPath.endsWith(PATH_SEPARATOR) ?
+            remoteParentPath : remoteParentPath + PATH_SEPARATOR;
 
         OCFile parent = getStorageManager().getFileByDecryptedRemotePath(remoteParentPath);
 
@@ -84,8 +83,8 @@ public class CreateFolderOperation extends SyncOperation implements OnRemoteOper
         while (parent == null) {
             tempRemoteParentPath = new File(tempRemoteParentPath).getParent();
 
-            if (!tempRemoteParentPath.endsWith(OCFile.PATH_SEPARATOR)) {
-                tempRemoteParentPath = tempRemoteParentPath + OCFile.PATH_SEPARATOR;
+            if (!tempRemoteParentPath.endsWith(PATH_SEPARATOR)) {
+                tempRemoteParentPath = tempRemoteParentPath + PATH_SEPARATOR;
             }
 
             parent = getStorageManager().getFileByDecryptedRemotePath(tempRemoteParentPath);