]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 05:02:03 +0000 (06:02 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 05:04:27 +0000 (06:04 +0100)
- ops, wrong indenting
- also closed internal TODO as above getClass() check is enough

src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java
src/org/mxchange/jcontactsbusiness/model/department/BusinessDepartment.java

index fa105bffb4e9be38e78f66f7afc890987f340e2e..3ebf5e518238b4eda2c4857d6db5f927b110ecd7 100644 (file)
@@ -325,7 +325,6 @@ public class BusinessBranchOffice implements BranchOffice {
 
                // Init comparisons
                final int[] comparators = {
-                       // First compare basic data
                        // First compare basic data
                        this.getBranchCompany().compareTo(branchOffice.getBranchCompany()),
                        // ... branch office number
@@ -371,7 +370,7 @@ public class BusinessBranchOffice implements BranchOffice {
                        return false;
                }
 
-               // @todo Maybe a bit unsafe cast?
+               // Cast to BranchOffice interface
                final BranchOffice branchOffice = (BranchOffice) object;
 
                if (!Objects.equals(this.getBranchCity(), branchOffice.getBranchCity())) {
index 406a6d246b41fc7c526ce82517800d823bf76a23..66fea634379186b213de10a2da8fc7edee0e1a05 100644 (file)
@@ -196,7 +196,7 @@ public class BusinessDepartment implements Department {
                        // ... lead contact
                        ContactUtils.compare(this.getDepartmentLead(), department.getDepartmentLead()),
                        // ... user owner
-UserUtils.compare(this.getDepartmentUserOwner(), department.getDepartmentUserOwner())
+                       UserUtils.compare(this.getDepartmentUserOwner(), department.getDepartmentUserOwner())
                };
 
                // Check all values