Refactoring

This commit is contained in:
M66B
2018-12-22 15:46:54 +00:00
parent c293968b5a
commit b11a23af56
2 changed files with 5 additions and 3 deletions

View File

@@ -165,10 +165,14 @@ public class EntityFolder implements Serializable {
static int getLevel(Character separator, String name) {
int level = 0;
if (separator != null)
if (separator != null) {
for (int i = 0; i < name.length(); i++)
if (name.charAt(i) == separator)
level++;
if (name.startsWith("INBOX" + separator))
level--;
}
return level;
}