Skip to content

Commit

Permalink
[#9986] Some minor QueryPartList improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Apr 1, 2020
1 parent db13cee commit ffc92f2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions jOOQ/src/main/java/org/jooq/impl/QueryPartList.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,13 @@

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.jooq.QueryPart;

/**
* @author Lukas Eder
*/
class QueryPartList<T extends QueryPart> extends QueryPartListView<T> implements List<T> {
class QueryPartList<T extends QueryPart> extends QueryPartListView<T> {

private static final long serialVersionUID = -2936922742534009564L;

Expand All @@ -68,4 +67,14 @@ class QueryPartList<T extends QueryPart> extends QueryPartListView<T> implements
if (wrappedList != null && !wrappedList.isEmpty())
addAll(wrappedList);
}

@Override
QueryPartList<T> indentSize(int newIndentSize) {
return (QueryPartList<T>) super.indentSize(newIndentSize);
}

@Override
QueryPartList<T> qualify(boolean newQualify) {
return (QueryPartList<T>) super.qualify(newQualify);
}
}

0 comments on commit ffc92f2

Please sign in to comment.