Loading core/java/android/hardware/location/ContextHubTransaction.java +3 −3 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.annotation.SystemApi; import android.chre.flags.Flags; import android.os.Handler; import android.os.HandlerExecutor; import android.util.Log; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; Loading Loading @@ -360,7 +361,6 @@ public class ContextHubTransaction<T> { * invoked more than once. * * @param response the response to set * @throws IllegalStateException if this method is invoked multiple times * @throws NullPointerException if the response is null * @hide */ Loading @@ -368,8 +368,8 @@ public class ContextHubTransaction<T> { synchronized (this) { Objects.requireNonNull(response, "Response cannot be null"); if (mIsResponseSet) { throw new IllegalStateException( "Cannot set response of ContextHubTransaction multiple times"); Log.e(TAG, "Cannot set response of ContextHubTransaction multiple times"); return; } mResponse = response; Loading Loading
core/java/android/hardware/location/ContextHubTransaction.java +3 −3 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.annotation.SystemApi; import android.chre.flags.Flags; import android.os.Handler; import android.os.HandlerExecutor; import android.util.Log; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; Loading Loading @@ -360,7 +361,6 @@ public class ContextHubTransaction<T> { * invoked more than once. * * @param response the response to set * @throws IllegalStateException if this method is invoked multiple times * @throws NullPointerException if the response is null * @hide */ Loading @@ -368,8 +368,8 @@ public class ContextHubTransaction<T> { synchronized (this) { Objects.requireNonNull(response, "Response cannot be null"); if (mIsResponseSet) { throw new IllegalStateException( "Cannot set response of ContextHubTransaction multiple times"); Log.e(TAG, "Cannot set response of ContextHubTransaction multiple times"); return; } mResponse = response; Loading