Skip to content

Commit

Permalink
Removed raw types use
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Tkacik <tony.tkacik@evolveum.com>
  • Loading branch information
tonydamage committed Mar 5, 2020
1 parent 8c4058d commit 5b32c5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Expand Up @@ -237,7 +237,7 @@ private void checkContainerValuesSize(QName parentName, PrismContainerValue<?> n
}
}

private void checkContainersSize(PrismContainer newContainer, PrismContainer oldContainer) {
private void checkContainersSize(PrismContainer<?> newContainer, PrismContainer<?> oldContainer) {
logger.info("checkContainersSize {} new {} old {}",
newContainer.getElementName(), newContainer.size(), oldContainer.size());
AssertJUnit.assertEquals(newContainer.size(), oldContainer.size());
Expand All @@ -248,16 +248,14 @@ private void checkContainersSize(PrismContainer newContainer, PrismContainer old
return;
}
List<Long> checked = new ArrayList<>();
List<PrismContainerValue> newValues = newContainer.getValues();
for (PrismContainerValue value : newValues) {
for (PrismContainerValue value : newContainer.getValues()) {
PrismContainerValue oldValue = oldContainer.getValue(value.getId());

checkContainerValuesSize(newContainer.getElementName(), value, oldValue);
checked.add(value.getId());
}

List<PrismContainerValue> oldValues = oldContainer.getValues();
for (PrismContainerValue value : oldValues) {
for (PrismContainerValue value : oldContainer.getValues()) {
if (checked.contains(value.getId())) {
continue;
}
Expand Down
Expand Up @@ -82,7 +82,7 @@ private List<PrismContainer<?>> listAllPrismContainers(Visitable object) {
return;
}

PrismContainer container = (PrismContainer) visitable;
PrismContainer<?> container = (PrismContainer) visitable;
PrismContainerDefinition def = container.getDefinition();
if (def.isSingleValue()) {
return;
Expand Down
Expand Up @@ -322,7 +322,7 @@ public static void assertProvisioningAccountShadow(PrismObject<ShadowType> accou
public static void assertProvisioningShadow(PrismObject<ShadowType> account,
Class<?> expectedAttributeDefinitionClass, QName objectClass) {
// Check attribute definition
PrismContainer attributesContainer = account.findContainer(ShadowType.F_ATTRIBUTES);
PrismContainer<?> attributesContainer = account.findContainer(ShadowType.F_ATTRIBUTES);
PrismAsserts.assertClass("Wrong attributes container class", ResourceAttributeContainer.class, attributesContainer);
ResourceAttributeContainer rAttributesContainer = (ResourceAttributeContainer) attributesContainer;
PrismContainerDefinition attrsDef = attributesContainer.getDefinition();
Expand Down

0 comments on commit 5b32c5b

Please sign in to comment.