HBASE-17404 Replace explicit type with diamond operator in hbase-annotations (Jan Hentschel)

This commit is contained in:
Michael Stack 2017-01-20 23:03:56 -08:00
parent 55a1aa1e73
commit fb8f9247d0
2 changed files with 3 additions and 4 deletions

View File

@ -79,8 +79,7 @@ final class RootDocProcessor {
return obj;
}
private static Map<Object, Object> proxies =
new WeakHashMap<Object, Object>();
private static Map<Object, Object> proxies = new WeakHashMap<>();
private static Object getProxy(Object obj) {
Object proxy = proxies.get(obj);
@ -207,7 +206,7 @@ final class RootDocProcessor {
if (array == null || array.length == 0) {
return array;
}
List<Object> list = new ArrayList<Object>(array.length);
List<Object> list = new ArrayList<>(array.length);
for (Doc entry : array) {
if (!exclude(entry)) {
list.add(process(entry, componentType));

View File

@ -53,7 +53,7 @@ final class StabilityOptions {
}
public static String[][] filterOptions(String[][] options) {
List<String[]> optionsList = new ArrayList<String[]>(options.length);
List<String[]> optionsList = new ArrayList<>();
for (int i = 0; i < options.length; i++) {
if (!options[i][0].equalsIgnoreCase(UNSTABLE_OPTION)
&& !options[i][0].equalsIgnoreCase(EVOLVING_OPTION)