Skip to content

Commit

Permalink
Add VisibleForTesting annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhang10 committed Dec 12, 2022
1 parent 7970ace commit c3c4a87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orc/src/main/java/org/apache/iceberg/orc/ORCSchemaUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.stream.Collectors;
import org.apache.iceberg.Schema;
import org.apache.iceberg.mapping.NameMapping;
import org.apache.iceberg.relocated.com.google.common.annotations.VisibleForTesting;
import org.apache.iceberg.relocated.com.google.common.base.Preconditions;
import org.apache.iceberg.relocated.com.google.common.collect.ImmutableMultimap;
import org.apache.iceberg.relocated.com.google.common.collect.Maps;
Expand Down Expand Up @@ -506,6 +507,7 @@ static TypeDescription removeIds(TypeDescription type) {
return OrcSchemaVisitor.visit(type, new RemoveIds());
}

@VisibleForTesting
public static boolean hasIds(TypeDescription orcSchema) {
return OrcSchemaVisitor.visit(orcSchema, new HasIds());
}
Expand Down

0 comments on commit c3c4a87

Please sign in to comment.