java - uses unchecked or unsafe operations Exception thrown when I use ImmutableMap -
this question has answer here:
always got blabla.java uses unchecked or unsafe operations
exception when mvn compile
immutablemap:
this code while using immutablemap
private static immutablemap<string, object> hikariconfigmap = new immutablemap.builder() .put("datasourceclassname", configurer.getstring("mysql.driver")) .put("datasource.url", configurer.getstring("mysql.url")) .put("datasource.user", configurer.getstring("mysql.user")) .put("datasource.password", configurer.getstring("mysql.password")) .build(); private static connectionprovider connectionprovider = new hikaricpconnectionprovider(hikariconfigmap);
any guy tell me why?
Comments
Post a Comment