Skip to content

Commit

Permalink
use int instead of long
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Jan 8, 2025
1 parent be6e46d commit 6117d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
import java.util.Map.Entry;
import java.util.stream.Collectors;

import org.omg.IOP.RMICustomMaxStreamFormat;

import io.bioimage.modelrunner.bioimageio.BioimageioRepo;
import io.bioimage.modelrunner.bioimageio.description.ModelDescriptor;
import io.bioimage.modelrunner.bioimageio.description.ModelDescriptorFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class JarInfo {
private static JarInfo instance;

// Map to store the parsed JSON data
private Map<String, Long> urlData;
private Map<String, Integer> urlData;

private static URL FILE_PATH = JarInfo.class.getClassLoader().getResource("jar_sizes.json");

Expand All @@ -39,7 +39,7 @@ public static JarInfo getInstance() throws IOException {
*
* @return Map containing the URL and their respective sizes
*/
public Map<String, Long> getAllData() {
public Map<String, Integer> getAllData() {
return urlData;
}

Expand All @@ -49,7 +49,7 @@ public Map<String, Long> getAllData() {
* @param url The URL to look up
* @return The size associated with the URL, or null if not found
*/
public Long get(String url) {
public Integer get(String url) {
return urlData.get(url);
}

Expand Down

0 comments on commit 6117d70

Please sign in to comment.