Skip to content

Commit

Permalink
Fixed a javadoc error during mvn verify stage
Browse files Browse the repository at this point in the history
  • Loading branch information
SecureNetWizard committed Nov 20, 2024
1 parent 04f60c9 commit c403b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jnetpcap/PcapIf.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,12 @@ public Optional<PcapAddr<? extends SockAddr>> findAddressOfFamily(SockAddrFamily
*/
@SuppressWarnings({ "unchecked"
})
public <T extends SockAddr> Optional<PcapAddr<T>> findAddressOfType(Class<T> faimlyClassType) {
public <T extends SockAddr> Optional<PcapAddr<T>> findAddressOfType(Class<T> familyClassType) {

var list = addresses();

return list.stream()
.filter(a -> faimlyClassType.isAssignableFrom(a.addr.getClass()))
.filter(a -> familyClassType.isAssignableFrom(a.addr.getClass()))
.map(a -> (PcapAddr<T>) a)
.findFirst();
}
Expand Down

0 comments on commit c403b93

Please sign in to comment.