Skip to content

Commit

Permalink
Fix warnings in Glide.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Aug 7, 2017
1 parent 88e4fea commit c393ebc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/src/main/java/com/bumptech/glide/Glide.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static void initializeGlide(Context context) {
}

@Nullable
@SuppressWarnings({"unchecked", "deprecation"})
@SuppressWarnings({"unchecked", "deprecation", "TryWithIdenticalCatches"})
private static GeneratedAppGlideModule getAnnotationGeneratedGlideModules() {
GeneratedAppGlideModule result = null;
try {
Expand All @@ -256,6 +256,7 @@ private static GeneratedAppGlideModule getAnnotationGeneratedGlideModules() {
throw new IllegalStateException("GeneratedAppGlideModuleImpl is implemented incorrectly."
+ " If you've manually implemented this class, remove your implementation. The Annotation"
+ " processor will generate a correct implementation.", e);
// These exceptions can't be squashed across all versions of Android.
} catch (IllegalAccessException e) {
throw new IllegalStateException("GeneratedAppGlideModuleImpl is implemented incorrectly."
+ " If you've manually implemented this class, remove your implementation. The Annotation"
Expand Down Expand Up @@ -483,6 +484,7 @@ public void trimMemory(int level) {
* This method should always be called on a background thread, since it is a blocking call.
* </p>
*/
@SuppressWarnings("unused") // Public API
public void clearDiskCache() {
Util.assertBackgroundThread();
engine.clearDiskCache();
Expand Down

0 comments on commit c393ebc

Please sign in to comment.