diff --git a/mediapipe/java/com/google/mediapipe/components/AudioDataProducer.java b/mediapipe/java/com/google/mediapipe/components/AudioDataProducer.java index 4f18f4706..5d042562e 100644 --- a/mediapipe/java/com/google/mediapipe/components/AudioDataProducer.java +++ b/mediapipe/java/com/google/mediapipe/components/AudioDataProducer.java @@ -14,8 +14,10 @@ package com.google.mediapipe.components; +import javax.annotation.Nullable; + /** Lightweight abstraction for an object that can produce audio data. */ public interface AudioDataProducer { /** Set the consumer that receives the audio data from this producer. */ - void setAudioConsumer(AudioDataConsumer consumer); + void setAudioConsumer(@Nullable AudioDataConsumer consumer); } diff --git a/mediapipe/java/com/google/mediapipe/components/BUILD b/mediapipe/java/com/google/mediapipe/components/BUILD index a1ec17548..630bc94c3 100644 --- a/mediapipe/java/com/google/mediapipe/components/BUILD +++ b/mediapipe/java/com/google/mediapipe/components/BUILD @@ -71,7 +71,10 @@ android_library( "AudioDataProducer.java", ], visibility = ["//visibility:public"], - deps = ["@maven//:com_google_guava_guava"], + deps = [ + "@maven//:com_google_code_findbugs_jsr305", + "@maven//:com_google_guava_guava", + ], ) # MicrophoneHelper that provides access to audio data from a microphone