sorry to say, I'm not very experienced with Java. I'm using eclipse as IDE. Eclispe complains about unchecked cast which I can not understand. Please refer to the code snipet. How to make this right in general ?
public Liberty2Server(ArrayList<Map<String,String>> libertySourceFiles , String basePath) throws FileNotFoundException , IllegalArgumentException {
// check input file path
for( Object map : libertySourceFiles) {
Map<String,String> mp = (Map<String,String>) map ; // <==Eclipse complains here: Unchecked cast from Object to Map<String,String>
Any hint is welcome
Rolf