package xyz.papermodloader.tree.util;

import org.gradle.internal.impldep.com.google.common.hash.HashCode;
import org.gradle.internal.impldep.com.google.common.hash.Hashing;
import org.gradle.internal.impldep.com.google.common.io.Files;

import java.io.File;
import java.io.IOException;

public class HashUtil {
    public static boolean equalHash(File file, String checksum) {
        if (file == null) {
            return false;
        }
        try {
            HashCode hash = Files.hash(file, Hashing.sha1());
            StringBuilder builder = new StringBuilder();
            for (Byte hashBytes : hash.asBytes()) {
                builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));
            }
            return builder.toString().equals(checksum);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return false;
    }
}

package xyz.papermodloader.tree.util;

import com.google.common.hash.HashCode;
import com.google.common.hash.Hashing;
import com.google.common.io.Files;

import java.io.File;
import java.io.IOException;

public class HashUtil {
    public static boolean equalHash(File file, String checksum) {
        if (file == null) {
            return false;
        }
        try {
            HashCode hash = Files.hash(file, Hashing.sha1());
            StringBuilder builder = new StringBuilder();
            for (Byte hashBytes : hash.asBytes()) {
                builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));
            }
            return builder.toString().equals(checksum);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return false;
    }
}

Fix HashUtil using wrong imports