From 71a4b6337cde1657da30a84eeff29157c10936c3 Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Mon, 13 Sep 2021 09:51:13 +0100 Subject: [PATCH] Fix javadoc consistency #exofixit PiperOrigin-RevId: 396304941 --- .../com/google/android/exoplayer2/util/BundleableUtils.java | 2 +- .../main/java/com/google/android/exoplayer2/util/Util.java | 2 +- .../main/java/com/google/android/exoplayer2/ExoPlayer.java | 2 +- .../java/com/google/android/exoplayer2/ExoPlayerImpl.java | 2 +- .../android/exoplayer2/mediacodec/MediaCodecRenderer.java | 2 +- .../java/com/google/android/exoplayer2/ui/PlayerView.java | 6 +++--- .../com/google/android/exoplayer2/ui/StyledPlayerView.java | 6 +++--- .../java/com/google/android/exoplayer2/ui/SubtitleView.java | 4 ++-- .../android/exoplayer2/testutil/AdditionalFailureInfo.java | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/util/BundleableUtils.java b/library/common/src/main/java/com/google/android/exoplayer2/util/BundleableUtils.java index 1a29691dd8..932a3e8f7b 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/util/BundleableUtils.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/util/BundleableUtils.java @@ -135,7 +135,7 @@ public final class BundleableUtils { } /** - * Set the application class loader to the given {@link Bundle} if no class loader is present. + * Sets the application class loader to the given {@link Bundle} if no class loader is present. * *

This assumes that all classes unparceled from {@code bundle} are sharing the class loader of * {@code BundleableUtils}. diff --git a/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java b/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java index c152bd5d05..e570ec77e3 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/util/Util.java @@ -1417,7 +1417,7 @@ public final class Util { } /** - * Return the long that is composed of the bits of the 2 specified integers. + * Returns the long that is composed of the bits of the 2 specified integers. * * @param mostSignificantBits The 32 most significant bits of the long to return. * @param leastSignificantBits The 32 least significant bits of the long to return. diff --git a/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java b/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java index 2d82609c74..02044ef0a8 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java @@ -482,7 +482,7 @@ public interface ExoPlayer extends Player { } /** - * Set a limit on the time a call to {@link #setForegroundMode} can spend. If a call to {@link + * Sets a limit on the time a call to {@link #setForegroundMode} can spend. If a call to {@link * #setForegroundMode} takes more than {@code timeoutMs} milliseconds to complete, the player * will raise an error via {@link Player.Listener#onPlayerError}. * diff --git a/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java b/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java index 9ba5c42394..49e5df4341 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java @@ -253,7 +253,7 @@ import java.util.concurrent.CopyOnWriteArraySet; } /** - * Set a limit on the time a call to {@link #setForegroundMode} can spend. If a call to {@link + * Sets a limit on the time a call to {@link #setForegroundMode} can spend. If a call to {@link * #setForegroundMode} takes more than {@code timeoutMs} milliseconds to complete, the player will * raise an error via {@link Player.Listener#onPlayerError}. * diff --git a/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java b/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java index fab14c4774..0836102ae6 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java @@ -416,7 +416,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer { } /** - * Set a limit on the time a single {@link #render(long, long)} call can spend draining and + * Sets a limit on the time a single {@link #render(long, long)} call can spend draining and * filling the decoder. * *

This method should be called right after creating an instance of this class. diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java index 9b36708740..d96170d4e2 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java @@ -555,7 +555,7 @@ public class PlayerView extends FrameLayout implements AdViewProvider { } /** - * Set the {@link Player} to use. + * Sets the {@link Player} to use. * *

To transition a {@link Player} from targeting one view to another, it's recommended to use * {@link #switchTargetView(Player, PlayerView, PlayerView)} rather than this method. If you do @@ -912,7 +912,7 @@ public class PlayerView extends FrameLayout implements AdViewProvider { } /** - * Set the {@link PlayerControlView.VisibilityListener}. + * Sets the {@link PlayerControlView.VisibilityListener}. * * @param listener The listener to be notified about visibility changes, or null to remove the * current listener. @@ -1030,7 +1030,7 @@ public class PlayerView extends FrameLayout implements AdViewProvider { } /** - * Set the {@link AspectRatioFrameLayout.AspectRatioListener}. + * Sets the {@link AspectRatioFrameLayout.AspectRatioListener}. * * @param listener The listener to be notified about aspect ratios changes of the video content or * the content frame. diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java index 734a3561ca..72534209dc 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java @@ -562,7 +562,7 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider { } /** - * Set the {@link Player} to use. + * Sets the {@link Player} to use. * *

To transition a {@link Player} from targeting one view to another, it's recommended to use * {@link #switchTargetView(Player, StyledPlayerView, StyledPlayerView)} rather than this method. @@ -917,7 +917,7 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider { } /** - * Set the {@link StyledPlayerControlView.VisibilityListener}. + * Sets the {@link StyledPlayerControlView.VisibilityListener}. * * @param listener The listener to be notified about visibility changes, or null to remove the * current listener. @@ -1067,7 +1067,7 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider { } /** - * Set the {@link AspectRatioFrameLayout.AspectRatioListener}. + * Sets the {@link AspectRatioFrameLayout.AspectRatioListener}. * * @param listener The listener to be notified about aspect ratios changes of the video content or * the content frame. diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleView.java index ee62328b4e..5c5b630d5d 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/SubtitleView.java @@ -163,7 +163,7 @@ public final class SubtitleView extends FrameLayout implements Player.Listener { } /** - * Set the type of {@link View} used to display subtitles. + * Sets the type of {@link View} used to display subtitles. * *

NOTE: {@link #VIEW_TYPE_WEB} is currently very experimental, and doesn't support most * styling and layout properties of {@link Cue}. @@ -198,7 +198,7 @@ public final class SubtitleView extends FrameLayout implements Player.Listener { } /** - * Set the text size to a given unit and value. + * Sets the text size to a given unit and value. * *

See {@link TypedValue} for the possible dimension units. * diff --git a/testutils/src/main/java/com/google/android/exoplayer2/testutil/AdditionalFailureInfo.java b/testutils/src/main/java/com/google/android/exoplayer2/testutil/AdditionalFailureInfo.java index 7818255075..bcaff7e19f 100644 --- a/testutils/src/main/java/com/google/android/exoplayer2/testutil/AdditionalFailureInfo.java +++ b/testutils/src/main/java/com/google/android/exoplayer2/testutil/AdditionalFailureInfo.java @@ -48,7 +48,7 @@ public final class AdditionalFailureInfo implements TestRule { } /** - * Set the additional info to be added to any test failures. Pass {@code null} to skip adding any + * Sets the additional info to be added to any test failures. Pass {@code null} to skip adding any * additional info. * *

Can be called from any thread.