External static methods not being recognized in the project

2

I'm importing a utility library into my main project, the library currently contains a single static method, I can import both manually and maven, but I'm not able to access the static library method. I'm using Spring boot, maven and JDK 1.8 in the project the library was created with JDK 1.8.

Class within .jar:

import java.util.List;

public class CalculoGeografico {
    public CalculoGeografico() {
    }

public static boolean CalcularPontoDentroPoligono(List<Double> latidudes, List<Double> longitudes, Double pontoLatitude, Double pontoLongitude) {
    boolean result = false;
    int j = latidudes.size() - 1;

    for(int i = 0; i < latidudes.size(); j = i++) {
        if (((Double)latidudes.get(i) < pontoLatitude && (Double)latidudes.get(j) > pontoLatitude || (Double)latidudes.get(j) < pontoLatitude && (Double)latidudes.get(i) > pontoLatitude) && (Double)longitudes.get(i) + (pontoLatitude - (Double)latidudes.get(i)) / ((Double)latidudes.get(j) - (Double)latidudes.get(i)) * ((Double)longitudes.get(j) - (Double)longitudes.get(i)) < pontoLongitude) {
            result = !result;
        }
    }

    return result;
}
}
    
asked by anonymous 26.11.2018 / 13:02

0 answers