Hallo,
und zwar wird mir hier:
der Fehler angezeigt :
Null type safety (type annotations): The expression of type 'String[]' needs unchecked conversion to conform to '@NonNull String []'
und ich verstehe nicht wieso? weil ich prüfe ja ob coordinates nicht null ist. Ich habe es auch mit Objects.requireNonNull probiert aber funktioniert auch nicht.
Kann mir bitte jemand helfen.bitte
Hier die Methode
und zwar wird mir hier:
Code:
Arrays.asList(coordinates)
Null type safety (type annotations): The expression of type 'String[]' needs unchecked conversion to conform to '@NonNull String []'
und ich verstehe nicht wieso? weil ich prüfe ja ob coordinates nicht null ist. Ich habe es auch mit Objects.requireNonNull probiert aber funktioniert auch nicht.
Kann mir bitte jemand helfen.bitte
Hier die Methode
Java:
private List<Point> getPoints(@Nonnull String pointString) {
String[] coordinates = pointString.split(",");
if (coordinates != null) {
List<String> coordinatesList = new ArrayList<String>(Arrays.asList(coordinates));
//TODO
}
}
return null;
}