From 7b0c7582a9f77a0f6f3c76a17a1a584aef29c46d Mon Sep 17 00:00:00 2001 From: Fares Alhassen Date: Thu, 30 Jul 2026 11:13:25 -0700 Subject: [PATCH] Fix Javadoc compilation warnings in Glide. This CL fixes Javadoc compilation warnings in `GlideBuilder.java` and `GlideFutures.java` (using fully qualified names or code font for non-imported or private classes) to resolve build failures during export to GitHub. PiperOrigin-RevId: 956630146 --- .../integration/concurrent/GlideFutures.java | 2 +- .../java/com/bumptech/glide/GlideBuilder.java | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java b/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java index 77be63ca91..c244dbbd48 100644 --- a/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java +++ b/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java @@ -62,7 +62,7 @@ public interface ResourceConsumer { * Glide's pool. In particular, if the request is cancelled after the resource is loaded by Glide, * but before {@code action} is run on {@code executor}, the resource will not be returned. We * have the unfortunate choice between unsafely returning resources to the pool immediately when - * cancel is called while they may still be in use via {@link + * cancel is called while they may still be in use via {@code * com.google.common.util.concurrent.ClosingFuture} or occasionally failing to return resources to * the pool. Because failing to return resources to the pool is inefficient, but safe, that's the * route we've chosen. A more sophisticated implementation may allow us to avoid the resource diff --git a/library/src/main/java/com/bumptech/glide/GlideBuilder.java b/library/src/main/java/com/bumptech/glide/GlideBuilder.java index f6185db447..2fa362f6e9 100644 --- a/library/src/main/java/com/bumptech/glide/GlideBuilder.java +++ b/library/src/main/java/com/bumptech/glide/GlideBuilder.java @@ -489,7 +489,7 @@ public GlideBuilder setImageDecoderEnabledForBitmaps(boolean isEnabled) { /** * Set to {@code true} to make Glide use {@link android.graphics.ImageDecoder} when decoding - * {@link Bitmap}s from local {@link Uri}s on Android Q and higher. + * {@link Bitmap}s from local {@link android.net.Uri}s on Android Q and higher. * *

This functionality is also guarded by {@link #setImageDecoderEnabledForBitmaps(boolean)} and * will only be active if that flag is also enabled. @@ -507,7 +507,8 @@ public GlideBuilder setUriImageDecoderEnabled(boolean isEnabled) { /** * Set to {@code true} to make Glide use a heap buffer instead of a direct buffer when decoding - * {@link Bitmap}s from an {@link InputStream} using {@link android.graphics.ImageDecoder}. + * {@link Bitmap}s from an {@link java.io.InputStream} using {@link + * android.graphics.ImageDecoder}. * *

This flag is experimental and may be removed without deprecation in a future version. */ @@ -518,8 +519,8 @@ public GlideBuilder setUseHeapBufferForImageDecoderWithInputStream(boolean isEna /** * Set to {@code true} to make Glide pool intermediate reading buffers and allocate precisely one - * tailored {@link ByteBuffer} using {@link ArrayPool} when decoding from an {@link InputStream} - * via {@link android.graphics.ImageDecoder}. + * tailored {@link java.nio.ByteBuffer} using {@link ArrayPool} when decoding from an {@link + * java.io.InputStream} via {@link android.graphics.ImageDecoder}. * *

This flag is experimental and may be removed without deprecation in a future version. */ @@ -530,8 +531,8 @@ public GlideBuilder setUseArrayPoolForImageDecoderByteBufferAllocation(boolean i } /** - * Set to {@code true} to enable direct {@link ByteBuffer} decoding instead of wrapping buffers in - * an {@link java.io.InputStream}. Disabled by default. + * Set to {@code true} to enable direct {@link java.nio.ByteBuffer} decoding instead of wrapping + * buffers in an {@link java.io.InputStream}. Disabled by default. * *

This flag is experimental and may be removed without deprecation in a future version. */ @@ -541,8 +542,8 @@ public GlideBuilder setEnableDirectByteBufferDecoding(boolean isEnabled) { } /** - * Override the OS thread priority of threads created in {@link - * com.bumptech.glide.load.engine.executor.GlideExecutor#DefaultThreadFactory} with {@link + * Override the OS thread priority of threads created in {@code + * com.bumptech.glide.load.engine.executor.GlideExecutor.DefaultThreadFactory} with {@link * com.bumptech.glide.load.engine.DecodeJob#GLIDE_THREAD_PRIORITY_OVERRIDE} Glide Option. * *

This is an experimental API that may be removed in the future.