File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 13
13
import net .sf .jsqlparser .statement .select .SetOperationList .SetOperationType ;
14
14
15
15
public abstract class SetOperation extends ASTNodeAccessImpl {
16
- String modifier = "" ;
16
+ String modifier ;
17
+
18
+ public String getModifier () {
19
+ return modifier != null ? modifier : "" ;
20
+ }
17
21
18
22
public boolean isAll () {
19
- return modifier .contains ("ALL" );
23
+ return modifier != null && modifier .contains ("ALL" );
20
24
}
21
25
22
26
public void setAll (boolean all ) {
23
27
this .modifier = "ALL" ;
24
28
}
25
29
26
30
public boolean isDistinct () {
27
- return modifier .contains ("DISTINCT" );
31
+ return modifier != null && modifier .contains ("DISTINCT" );
28
32
}
29
33
30
34
public void setDistinct (boolean distinct ) {
31
35
this .modifier = "DISTINCT" ;
32
36
}
33
37
34
- private SetOperationType type ;
38
+ private final SetOperationType type ;
35
39
36
40
public SetOperation (SetOperationType type ) {
37
41
this .type = type ;
You can’t perform that action at this time.
0 commit comments