mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-23 05:53:02 +02:00
Fix unchecked types warnings in HentaiNexusRipper.java
This commit is contained in:
@@ -60,7 +60,6 @@ public class HentaiNexusRipper extends AbstractJSONRipper {
|
|||||||
addURLToDownload(url, getPrefix(index));
|
addURLToDownload(url, getPrefix(index));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<String> getURLsFromJSON(JSONObject json) throws JSONException {
|
protected List<String> getURLsFromJSON(JSONObject json) throws JSONException {
|
||||||
|
|
||||||
@@ -110,7 +109,6 @@ public class HentaiNexusRipper extends AbstractJSONRipper {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public String decodeJsonString(String jsonEncodedString)
|
public String decodeJsonString(String jsonEncodedString)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@@ -121,8 +119,7 @@ public class HentaiNexusRipper extends AbstractJSONRipper {
|
|||||||
|
|
||||||
byte[] jsonBytes = Base64.getDecoder().decode(jsonEncodedString);
|
byte[] jsonBytes = Base64.getDecoder().decode(jsonEncodedString);
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
ArrayList<Integer> unknownArray = new ArrayList<>();
|
||||||
ArrayList unknownArray = new ArrayList();
|
|
||||||
ArrayList<Integer> indexesToUse = new ArrayList<>();
|
ArrayList<Integer> indexesToUse = new ArrayList<>();
|
||||||
|
|
||||||
for (int i = 0x2; unknownArray.size() < 0x10; ++i) {
|
for (int i = 0x2; unknownArray.size() < 0x10; ++i) {
|
||||||
@@ -178,9 +175,7 @@ public class HentaiNexusRipper extends AbstractJSONRipper {
|
|||||||
return decodedJsonString;
|
return decodedJsonString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static long signedToUnsigned(int signed) {
|
private static long signedToUnsigned(int signed) {
|
||||||
return (byte) signed & 0xFF;
|
return (byte) signed & 0xFF;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user