diff --git a/src/main/java/org/jnetpcap/PcapIf.java b/src/main/java/org/jnetpcap/PcapIf.java index 3cf7fea..9d80f83 100644 --- a/src/main/java/org/jnetpcap/PcapIf.java +++ b/src/main/java/org/jnetpcap/PcapIf.java @@ -447,12 +447,12 @@ public Optional> findAddressOfFamily(SockAddrFamily */ @SuppressWarnings({ "unchecked" }) - public Optional> findAddressOfType(Class faimlyClassType) { + public Optional> findAddressOfType(Class familyClassType) { var list = addresses(); return list.stream() - .filter(a -> faimlyClassType.isAssignableFrom(a.addr.getClass())) + .filter(a -> familyClassType.isAssignableFrom(a.addr.getClass())) .map(a -> (PcapAddr) a) .findFirst(); }