Skip to content

Commit

Permalink
Improve ObjectTypeUtil#getExtensionItemRealValue
Browse files Browse the repository at this point in the history
Just a cosmetic enhancement.
  • Loading branch information
mederly committed Oct 3, 2023
1 parent 32b0852 commit 17f687b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1393,8 +1393,8 @@ private static void setExtensionItemRealValues(PrismContainerValue<?> parent, Ex
// return getExtensionItemRealValue(parent.asPrismContainerValue(), name);
// }

public static <T> T getExtensionItemRealValue(PrismContainerValue<?> parent, ItemName name) {
Item<?, ?> item = parent.findItem(ItemPath.create(ObjectType.F_EXTENSION, name));
public static <T> T getExtensionItemRealValue(PrismContainerValue<?> parent, ItemPath path) {
Item<?, ?> item = parent.findItem(ItemPath.create(ObjectType.F_EXTENSION, path));
if (item != null) {
//noinspection unchecked
return (T) item.getRealValue();
Expand Down

0 comments on commit 17f687b

Please sign in to comment.