Skip to content

Commit

Permalink
Address compilation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgonzal committed Nov 28, 2024
1 parent 125a677 commit 642e76f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jpos/src/main/java/org/jpos/security/BaseSMAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public String getName () {
* @throws NotFoundException
* @see NameRegistrar
*/
public static SMAdapter getSMAdapter (String name) throws NameRegistrar.NotFoundException {
return (SMAdapter)NameRegistrar.get("s-m-adapter." + name);
public static <T> SMAdapter<T> getSMAdapter (String name) throws NameRegistrar.NotFoundException {
return NameRegistrar.get("s-m-adapter." + name);
}

@Override
Expand Down

0 comments on commit 642e76f

Please sign in to comment.