Cleanup warnings

This commit is contained in:
Gabriele C
2016-04-01 17:02:57 +02:00
parent 46a10da40f
commit 997c31a03e
5 changed files with 8 additions and 7 deletions
@@ -31,7 +31,7 @@ public class PropertyMap {
* @param property The property to add
* @param comments The comments associated to the property
*/
public void put(Property property, String[] comments) {
public void put(Property<?> property, String[] comments) {
comparator.add(property);
map.put(property, comments);
}
@@ -13,7 +13,7 @@ import java.util.Comparator;
* property, then "DataSource" properties will come before the "security" ones.</li>
* </ul>
*/
final class PropertyMapComparator implements Comparator<Property> {
final class PropertyMapComparator implements Comparator<Property<?>> {
private Node parent = Node.createRoot();
@@ -22,12 +22,12 @@ final class PropertyMapComparator implements Comparator<Property> {
*
* @param property The property that is being added
*/
public void add(Property property) {
public void add(Property<?> property) {
parent.addNode(property.getPath());
}
@Override
public int compare(Property p1, Property p2) {
public int compare(Property<?> p1, Property<?> p2) {
return parent.compare(p1.getPath(), p2.getPath());
}