Skip to content

Commit 8ea282a

Browse files
committed
Merge origin/master
2 parents 1fbf6c5 + 1dabcbc commit 8ea282a

File tree

8 files changed

+1441
-2
lines changed

8 files changed

+1441
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Also I would like to know about needed examples or documentation stuff.
4747

4848
## Extensions in the latest SNAPSHOT version 1.1
4949

50+
* common normal form transformer for expressions (https://en.wikipedia.org/wiki/Conjunctive_normal_form)
5051
* checkstyle integration to force first souce code conventions
5152
* checkstyle is activated by default, it can be deactivated by an environment property **skipCheckSources**
5253
* pull requests should follow this style settings

src/main/java/net/sf/jsqlparser/expression/BinaryExpression.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public abstract class BinaryExpression implements Expression {
3030
private Expression leftExpression;
3131
private Expression rightExpression;
3232
private boolean not = false;
33-
33+
34+
35+
3436
public BinaryExpression() {
3537
}
3638

@@ -53,7 +55,11 @@ public void setRightExpression(Expression expression) {
5355
public void setNot() {
5456
not = true;
5557
}
56-
58+
59+
public void removeNot() {
60+
not = false;
61+
}
62+
5763
public boolean isNot() {
5864
return not;
5965
}
@@ -64,4 +70,5 @@ public String toString() {
6470
}
6571

6672
public abstract String getStringExpression();
73+
6774
}

0 commit comments

Comments
 (0)