Refactoring: "simplify negated binary expression" is now an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-20 20:41:50 +03:00
parent 35d85ddd1f
commit bc361363d5
56 changed files with 292 additions and 292 deletions
@@ -1,3 +0,0 @@
if (a != b) {
println("Not Equal")
}
@@ -1,3 +0,0 @@
if (<spot>!(a == b)</spot>) {
println("Not Equal")
}
@@ -1,7 +0,0 @@
<html>
<body>
This intention simplifies negated binary expressions by replacing expressions such as
!(<b>a</b> <small>op</small> <b>b</b>) with <b>a</b> <small>negop</small> <b>b</b>
(where <small>op</small> and <small>negop</small> are inverse comparison operators like <b>==</b> and <b>!=</b> or <b>in</b> and <b>!in</b>).
</body>
</html>