HBASE-17404 Replace explicit type with diamond operator in hbase-annotations (Jan Hentschel)
This commit is contained in:
parent
55a1aa1e73
commit
fb8f9247d0
|
@ -79,8 +79,7 @@ final class RootDocProcessor {
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Map<Object, Object> proxies =
|
private static Map<Object, Object> proxies = new WeakHashMap<>();
|
||||||
new WeakHashMap<Object, Object>();
|
|
||||||
|
|
||||||
private static Object getProxy(Object obj) {
|
private static Object getProxy(Object obj) {
|
||||||
Object proxy = proxies.get(obj);
|
Object proxy = proxies.get(obj);
|
||||||
|
@ -207,7 +206,7 @@ final class RootDocProcessor {
|
||||||
if (array == null || array.length == 0) {
|
if (array == null || array.length == 0) {
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
List<Object> list = new ArrayList<Object>(array.length);
|
List<Object> list = new ArrayList<>(array.length);
|
||||||
for (Doc entry : array) {
|
for (Doc entry : array) {
|
||||||
if (!exclude(entry)) {
|
if (!exclude(entry)) {
|
||||||
list.add(process(entry, componentType));
|
list.add(process(entry, componentType));
|
||||||
|
|
|
@ -53,7 +53,7 @@ final class StabilityOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String[][] filterOptions(String[][] options) {
|
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++) {
|
for (int i = 0; i < options.length; i++) {
|
||||||
if (!options[i][0].equalsIgnoreCase(UNSTABLE_OPTION)
|
if (!options[i][0].equalsIgnoreCase(UNSTABLE_OPTION)
|
||||||
&& !options[i][0].equalsIgnoreCase(EVOLVING_OPTION)
|
&& !options[i][0].equalsIgnoreCase(EVOLVING_OPTION)
|
||||||
|
|
Loading…
Reference in New Issue