Skip to content

Commit

Permalink
Merge pull request #5806 from pferraro/WFCORE-6347
Browse files Browse the repository at this point in the history
WFCORE-6347 Drop redundant getCapabity() method.
  • Loading branch information
pferraro authored Dec 19, 2023
2 parents 5419aad + ad39bb4 commit 2b4cea1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@
*/
public interface RuntimeCapabilityProvider<T> extends Supplier<RuntimeCapability<Void>>, ServiceDescriptor<T> {

RuntimeCapability<Void> getCapability();

@Override
default String getName() {
return this.getCapability().getName();
return this.get().getName();
}

@SuppressWarnings("unchecked")
@Override
default Class<T> getType() {
return (Class<T>) this.getCapability().getCapabilityServiceValueType();
return (Class<T>) this.get().getCapabilityServiceValueType();
}
}

0 comments on commit 2b4cea1

Please sign in to comment.