Commit 0128d0b6 by ibaker Committed by Ian Baker

Make @LogLevel public and TYPE_USE

#minor-release

PiperOrigin-RevId: 426410137
parent d3bb8efa
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
*/ */
package com.google.android.exoplayer2.util; package com.google.android.exoplayer2.util;
import static java.lang.annotation.ElementType.TYPE_USE;
import android.text.TextUtils; import android.text.TextUtils;
import androidx.annotation.IntDef; import androidx.annotation.IntDef;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
...@@ -22,6 +24,7 @@ import androidx.annotation.Size; ...@@ -22,6 +24,7 @@ import androidx.annotation.Size;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import org.checkerframework.dataflow.qual.Pure; import org.checkerframework.dataflow.qual.Pure;
...@@ -34,8 +37,9 @@ public final class Log { ...@@ -34,8 +37,9 @@ public final class Log {
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE)
@Target(TYPE_USE)
@IntDef({LOG_LEVEL_ALL, LOG_LEVEL_INFO, LOG_LEVEL_WARNING, LOG_LEVEL_ERROR, LOG_LEVEL_OFF}) @IntDef({LOG_LEVEL_ALL, LOG_LEVEL_INFO, LOG_LEVEL_WARNING, LOG_LEVEL_ERROR, LOG_LEVEL_OFF})
@interface LogLevel {} public @interface LogLevel {}
/** Log level to log all messages. */ /** Log level to log all messages. */
public static final int LOG_LEVEL_ALL = 0; public static final int LOG_LEVEL_ALL = 0;
/** Log level to only log informative, warning and error messages. */ /** Log level to only log informative, warning and error messages. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment