Use one line for each declaration, it enhances code readability (codacy)

This commit is contained in:
AndyScherzinger 2017-05-15 23:22:13 +02:00
parent 2f6793f878
commit e29ca8091d
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 8 additions and 3 deletions

View file

@ -208,7 +208,10 @@ public class AccountUtils {
if (currentAccountVersion == null) {
Log_OC.i(TAG, "Upgrading accounts to account version #" + ACCOUNT_VERSION);
Account[] ocAccounts = accountMgr.getAccountsByType(MainApp.getAccountType());
String serverUrl, username, newAccountName, password;
String serverUrl;
String username;
String newAccountName;
String password;
Account newAccount;
for (Account account : ocAccounts) {
// build new account name

View file

@ -115,7 +115,8 @@ public class IndexedForest<V> {
String currentPath = remotePath;
String parentPath = null;
String parentKey = null;
Node<V> currentNode = valuedNode, parentNode = null;
Node<V> currentNode = valuedNode;
Node<V> parentNode = null;
boolean linked = false;
while (!OCFile.ROOT_PATH.equals(currentPath) && !linked) {
parentPath = new File(currentPath).getParent();

View file

@ -136,7 +136,8 @@ public class CustomPopup {
LayoutParams.WRAP_CONTENT));
root.measure(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
int rootW = root.getWidth(), rootH = root.getHeight();
int rootW = root.getWidth();
int rootH = root.getHeight();
int screenW = mWManager.getDefaultDisplay().getWidth();
int xpos = ((screenW - rootW) / 2) + x;