Skip to content

Commit

Permalink
Changes to fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckerle committed Apr 28, 2024
1 parent 701102c commit bf6d52c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import java.net.URISyntaxException;
import java.util.Objects;

import static org.apache.drill.exec.store.daffodil.schema.DaffodilDataProcessorFactory.*;
import static org.apache.drill.exec.store.daffodil.schema.DaffodilDataProcessorFactory.CompileFailure;
import static org.apache.drill.exec.store.daffodil.schema.DrillDaffodilSchemaUtils.daffodilDataProcessorToDrillSchema;

public class DaffodilBatchReader implements ManagedReader {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,12 @@ public MapBuilder resumeMap() {
*/
@Override
public void resume() {
if (Objects.isNull(parent))
if (Objects.isNull(parent)) {
throw new IllegalStateException("Call to resume() on MapBuilder with no parent.");
if (parent instanceof MapBuilder)
}
if (parent instanceof MapBuilder) {
resumeMap();
else {
} else {
assert(parent instanceof SchemaBuilder);
//
// This would be extended for other kinds of possible containers of a Map.
Expand Down

0 comments on commit bf6d52c

Please sign in to comment.