Skip to content

Commit a0c01c9

Browse files
authored
chore: cleanup unused imports (#116)
* chore: remove unused imports from MyAppGlideModule - Removed DecodeFormat import that is no longer used - Removed RequestOptions import that is no longer used - These imports were left over after fixing the Glide recursive initialization issue * chore: fix typo and remove unused import in APIService - Fixed typo: 'Exeception' -> 'Exception' in error message - Removed unused URISyntaxException import * fix: correct typo in filename MyAppGlideModule (was MyAppGllideModule) * fix: correct class name to match filename MyAppGlideModule
1 parent fa630c3 commit a0c01c9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/src/main/java/me/ghui/v2er/general/MyAppGllideModule.java renamed to app/src/main/java/me/ghui/v2er/general/MyAppGlideModule.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import com.bumptech.glide.Registry;
1010
import com.bumptech.glide.annotation.GlideModule;
1111
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader;
12-
import com.bumptech.glide.load.DecodeFormat;
1312
import com.bumptech.glide.load.model.GlideUrl;
1413
import com.bumptech.glide.module.AppGlideModule;
15-
import com.bumptech.glide.request.RequestOptions;
1614

1715
import java.io.InputStream;
1816

@@ -23,7 +21,7 @@
2321
*/
2422

2523
@GlideModule
26-
public class MyAppGllideModule extends AppGlideModule {
24+
public class MyAppGlideModule extends AppGlideModule {
2725

2826
@Override
2927
public boolean isManifestParsingEnabled() {

app/src/main/java/me/ghui/v2er/network/APIService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.google.gson.GsonBuilder;
66

77
import java.io.IOException;
8-
import java.net.URISyntaxException;
98
import java.util.concurrent.TimeUnit;
109

1110
import javax.annotation.Nullable;
@@ -126,7 +125,7 @@ public Response intercept(Chain chain) throws IOException {
126125
return new Response.Builder()
127126
.protocol(Protocol.HTTP_1_1)
128127
.code(404)
129-
.message("Exeception when execute chain.proceed request")
128+
.message("Exception when execute chain.proceed request")
130129
.body(ResponseBody.create("Network error occurred", MediaType.parse("text/plain")))
131130
.request(request).build();
132131
}

0 commit comments

Comments
 (0)