HBASE-12519 Remove tabs used as whitespace (Varun Saxena)
This commit is contained in:
parent
eb4c194a87
commit
58b6b24c29
|
@ -98,8 +98,7 @@ class RootDocProcessor {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Object invoke(Object proxy, Method method, Object[] args)
|
||||
throws Throwable {
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
String methodName = method.getName();
|
||||
if (target instanceof Doc) {
|
||||
if (methodName.equals("isIncluded")) {
|
||||
|
@ -121,47 +120,37 @@ class RootDocProcessor {
|
|||
} else if (methodName.equals("fields")) {
|
||||
return filter(((ClassDoc) target).fields(true), FieldDoc.class);
|
||||
} else if (methodName.equals("innerClasses")) {
|
||||
return filter(((ClassDoc) target).innerClasses(true),
|
||||
ClassDoc.class);
|
||||
return filter(((ClassDoc) target).innerClasses(true), ClassDoc.class);
|
||||
} else if (methodName.equals("constructors")) {
|
||||
return filter(((ClassDoc) target).constructors(true),
|
||||
ConstructorDoc.class);
|
||||
return filter(((ClassDoc) target).constructors(true), ConstructorDoc.class);
|
||||
}
|
||||
}
|
||||
} else if (target instanceof PackageDoc) {
|
||||
if (methodName.equals("allClasses")) {
|
||||
if (isFiltered(args)) {
|
||||
return filter(((PackageDoc) target).allClasses(true),
|
||||
ClassDoc.class);
|
||||
return filter(((PackageDoc) target).allClasses(true), ClassDoc.class);
|
||||
} else {
|
||||
return filter(((PackageDoc) target).allClasses(), ClassDoc.class);
|
||||
}
|
||||
} else if (methodName.equals("annotationTypes")) {
|
||||
return filter(((PackageDoc) target).annotationTypes(),
|
||||
AnnotationTypeDoc.class);
|
||||
return filter(((PackageDoc) target).annotationTypes(), AnnotationTypeDoc.class);
|
||||
} else if (methodName.equals("enums")) {
|
||||
return filter(((PackageDoc) target).enums(),
|
||||
ClassDoc.class);
|
||||
return filter(((PackageDoc) target).enums(), ClassDoc.class);
|
||||
} else if (methodName.equals("errors")) {
|
||||
return filter(((PackageDoc) target).errors(),
|
||||
ClassDoc.class);
|
||||
return filter(((PackageDoc) target).errors(), ClassDoc.class);
|
||||
} else if (methodName.equals("exceptions")) {
|
||||
return filter(((PackageDoc) target).exceptions(),
|
||||
ClassDoc.class);
|
||||
return filter(((PackageDoc) target).exceptions(), ClassDoc.class);
|
||||
} else if (methodName.equals("interfaces")) {
|
||||
return filter(((PackageDoc) target).interfaces(),
|
||||
ClassDoc.class);
|
||||
return filter(((PackageDoc) target).interfaces(), ClassDoc.class);
|
||||
} else if (methodName.equals("ordinaryClasses")) {
|
||||
return filter(((PackageDoc) target).ordinaryClasses(),
|
||||
ClassDoc.class);
|
||||
return filter(((PackageDoc) target).ordinaryClasses(), ClassDoc.class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (args != null) {
|
||||
if (methodName.equals("compareTo") || methodName.equals("equals")
|
||||
|| methodName.equals("overrides")
|
||||
|| methodName.equals("subclassOf")) {
|
||||
|| methodName.equals("overrides") || methodName.equals("subclassOf")) {
|
||||
args[0] = unwrap(args[0]);
|
||||
}
|
||||
}
|
||||
|
@ -182,32 +171,26 @@ class RootDocProcessor {
|
|||
if (annotations != null) {
|
||||
for (AnnotationDesc annotation : annotations) {
|
||||
String qualifiedTypeName = annotation.annotationType().qualifiedTypeName();
|
||||
if (qualifiedTypeName.equals(
|
||||
InterfaceAudience.Private.class.getCanonicalName())
|
||||
|| qualifiedTypeName.equals(
|
||||
InterfaceAudience.LimitedPrivate.class.getCanonicalName())) {
|
||||
if (qualifiedTypeName.equals(InterfaceAudience.Private.class.getCanonicalName())
|
||||
|| qualifiedTypeName
|
||||
.equals(InterfaceAudience.LimitedPrivate.class.getCanonicalName())) {
|
||||
return true;
|
||||
}
|
||||
if (stability.equals(StabilityOptions.EVOLVING_OPTION)) {
|
||||
if (qualifiedTypeName.equals(
|
||||
InterfaceStability.Unstable.class.getCanonicalName())) {
|
||||
if (qualifiedTypeName.equals(InterfaceStability.Unstable.class.getCanonicalName())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (stability.equals(StabilityOptions.STABLE_OPTION)) {
|
||||
if (qualifiedTypeName.equals(
|
||||
InterfaceStability.Unstable.class.getCanonicalName())
|
||||
|| qualifiedTypeName.equals(
|
||||
InterfaceStability.Evolving.class.getCanonicalName())) {
|
||||
if (qualifiedTypeName.equals(InterfaceStability.Unstable.class.getCanonicalName())
|
||||
|| qualifiedTypeName.equals(InterfaceStability.Evolving.class.getCanonicalName())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (AnnotationDesc annotation : annotations) {
|
||||
String qualifiedTypeName =
|
||||
annotation.annotationType().qualifiedTypeName();
|
||||
if (qualifiedTypeName.equals(
|
||||
InterfaceAudience.Public.class.getCanonicalName())) {
|
||||
String qualifiedTypeName = annotation.annotationType().qualifiedTypeName();
|
||||
if (qualifiedTypeName.equals(InterfaceAudience.Public.class.getCanonicalName())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -228,20 +211,16 @@ class RootDocProcessor {
|
|||
list.add(process(entry, componentType));
|
||||
}
|
||||
}
|
||||
return list.toArray((Object[]) Array.newInstance(componentType, list
|
||||
.size()));
|
||||
return list.toArray((Object[]) Array.newInstance(componentType, list.size()));
|
||||
}
|
||||
|
||||
private Object unwrap(Object proxy) {
|
||||
if (proxy instanceof Proxy)
|
||||
return ((ExcludeHandler) Proxy.getInvocationHandler(proxy)).target;
|
||||
if (proxy instanceof Proxy) return ((ExcludeHandler) Proxy.getInvocationHandler(proxy)).target;
|
||||
return proxy;
|
||||
}
|
||||
|
||||
private boolean isFiltered(Object[] args) {
|
||||
return args != null && Boolean.TRUE.equals(args[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,8 +35,7 @@ class StabilityOptions {
|
|||
return null;
|
||||
}
|
||||
|
||||
public static void validOptions(String[][] options,
|
||||
DocErrorReporter reporter) {
|
||||
public static void validOptions(String[][] options, DocErrorReporter reporter) {
|
||||
for (int i = 0; i < options.length; i++) {
|
||||
String opt = options[i][0].toLowerCase();
|
||||
if (opt.equals(UNSTABLE_OPTION)) {
|
||||
|
@ -65,5 +64,4 @@ class StabilityOptions {
|
|||
}
|
||||
return filteredOptions;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -180,12 +180,11 @@ public class AggregationClient implements Closeable {
|
|||
*/
|
||||
private void validateParameters(Scan scan, boolean canFamilyBeAbsent) throws IOException {
|
||||
if (scan == null
|
||||
|| (Bytes.equals(scan.getStartRow(), scan.getStopRow()) && !Bytes
|
||||
.equals(scan.getStartRow(), HConstants.EMPTY_START_ROW))
|
||||
|| ((Bytes.compareTo(scan.getStartRow(), scan.getStopRow()) > 0) &&
|
||||
!Bytes.equals(scan.getStopRow(), HConstants.EMPTY_END_ROW))) {
|
||||
throw new IOException(
|
||||
"Agg client Exception: Startrow should be smaller than Stoprow");
|
||||
|| (Bytes.equals(scan.getStartRow(), scan.getStopRow()) && !Bytes.equals(
|
||||
scan.getStartRow(), HConstants.EMPTY_START_ROW))
|
||||
|| ((Bytes.compareTo(scan.getStartRow(), scan.getStopRow()) > 0) && !Bytes.equals(
|
||||
scan.getStopRow(), HConstants.EMPTY_END_ROW))) {
|
||||
throw new IOException("Agg client Exception: Startrow should be smaller than Stoprow");
|
||||
} else if (!canFamilyBeAbsent) {
|
||||
if (scan.getFamilyMap().size() != 1) {
|
||||
throw new IOException("There must be only one family.");
|
||||
|
|
|
@ -56,7 +56,7 @@ public class TestRowDataDifferentTimestamps extends BaseTestRowData{
|
|||
d.add(kv2);
|
||||
|
||||
//watch out... Long.MAX_VALUE comes back as 1332221664203, even with other encoders
|
||||
// d.add(new KeyValue(Brow, cf, cq1, Long.MAX_VALUE, v0));
|
||||
//d.add(new KeyValue(Brow, cf, cq1, Long.MAX_VALUE, v0));
|
||||
KeyValue kv3 = new KeyValue(Brow, cf, cq1, Long.MAX_VALUE-1, v0);
|
||||
kv3.setSequenceId(1L);
|
||||
d.add(kv3);
|
||||
|
|
Loading…
Reference in New Issue