File tree 1 file changed +3
-1
lines changed
library/src/main/java/com/bumptech/glide
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ private static void initializeGlide(Context context) {
237
237
}
238
238
239
239
@ Nullable
240
- @ SuppressWarnings ({"unchecked" , "deprecation" })
240
+ @ SuppressWarnings ({"unchecked" , "deprecation" , "TryWithIdenticalCatches" })
241
241
private static GeneratedAppGlideModule getAnnotationGeneratedGlideModules () {
242
242
GeneratedAppGlideModule result = null ;
243
243
try {
@@ -256,6 +256,7 @@ private static GeneratedAppGlideModule getAnnotationGeneratedGlideModules() {
256
256
throw new IllegalStateException ("GeneratedAppGlideModuleImpl is implemented incorrectly."
257
257
+ " If you've manually implemented this class, remove your implementation. The Annotation"
258
258
+ " processor will generate a correct implementation." , e );
259
+ // These exceptions can't be squashed across all versions of Android.
259
260
} catch (IllegalAccessException e ) {
260
261
throw new IllegalStateException ("GeneratedAppGlideModuleImpl is implemented incorrectly."
261
262
+ " If you've manually implemented this class, remove your implementation. The Annotation"
@@ -483,6 +484,7 @@ public void trimMemory(int level) {
483
484
* This method should always be called on a background thread, since it is a blocking call.
484
485
* </p>
485
486
*/
487
+ @ SuppressWarnings ("unused" ) // Public API
486
488
public void clearDiskCache () {
487
489
Util .assertBackgroundThread ();
488
490
engine .clearDiskCache ();
You can’t perform that action at this time.
0 commit comments