Make @LogLevel public and TYPE_USE

#minor-release

PiperOrigin-RevId: 426410137
This commit is contained in:
ibaker 2022-02-04 16:30:09 +00:00 committed by Ian Baker
parent 975910a494
commit 2bd27dd184

View File

@ -15,6 +15,8 @@
*/
package com.google.android.exoplayer2.util;
import static java.lang.annotation.ElementType.TYPE_USE;
import android.text.TextUtils;
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
@ -22,6 +24,7 @@ import androidx.annotation.Size;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.net.UnknownHostException;
import org.checkerframework.dataflow.qual.Pure;
@ -34,8 +37,9 @@ public final class Log {
*/
@Documented
@Retention(RetentionPolicy.SOURCE)
@Target(TYPE_USE)
@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. */
public static final int LOG_LEVEL_ALL = 0;
/** Log level to only log informative, warning and error messages. */