X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/fd25ef539f6fa480e5f4cc7be0b7e8425b3375a2..9eb97746c123575593d8cb3709a3413c0b22482d:/src/main/java/org/asamk/signal/dbus/DbusProperties.java diff --git a/src/main/java/org/asamk/signal/dbus/DbusProperties.java b/src/main/java/org/asamk/signal/dbus/DbusProperties.java index bbe01d6b..256b858d 100644 --- a/src/main/java/org/asamk/signal/dbus/DbusProperties.java +++ b/src/main/java/org/asamk/signal/dbus/DbusProperties.java @@ -7,6 +7,7 @@ import org.freedesktop.dbus.types.Variant; import java.util.ArrayList; import java.util.List; import java.util.Map; +import java.util.Optional; import java.util.stream.Collectors; public abstract class DbusProperties implements Properties { @@ -25,7 +26,7 @@ public abstract class DbusProperties implements Properties { return handler.get(); } - private java.util.Optional getHandlerOptional(final String interfaceName) { + private Optional getHandlerOptional(final String interfaceName) { return handlers.stream().filter(h -> h.getInterfaceName().equals(interfaceName)).findFirst(); }