Cleanup warnings
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user