This commit is contained in:
Dmitry Jemerov
2009-09-10 21:51:16 +04:00
parent fc3eb6dd3d
commit 9f4d10da95
9 changed files with 8 additions and 2 deletions
@@ -0,0 +1,17 @@
interface I {
boolean <caret>isFoo();
}
class RRR implements I {
public boolean isFoo() {
return true;
}
{
boolean foo = isFoo();
}
void g(I i) {
boolean foo = i.isFoo();
}
}
@@ -0,0 +1,17 @@
interface I {
boolean isFooInverted();
}
class RRR implements I {
public boolean isFooInverted() {
return false;
}
{
boolean foo = !isFooInverted();
}
void g(I i) {
boolean foo = !i.isFooInverted();
}
}
@@ -0,0 +1,17 @@
interface I {
boolean isFoo();
}
class RRR implements I {
public boolean <caret>isFoo() {
return true;
}
{
boolean foo = isFoo();
}
void g(I i) {
boolean foo = i.isFoo();
}
}
@@ -0,0 +1,17 @@
interface I {
boolean isFoo();
}
class RRR implements I {
public boolean isFooInverted() {
return false;
}
{
boolean foo = !isFooInverted();
}
void g(I i) {
boolean foo = i.isFoo();
}
}
@@ -0,0 +1,9 @@
class InvertBooleanParameterTest {
void foo(boolean <caret>b) {
boolean c = !b;
}
{
foo(true);
}
}
@@ -0,0 +1,16 @@
class InvertBooleanParameterTest {
void foo(boolean <caret>b) {
boolean c = !b;
b = false;
}
{
foo(true);
}
}
class Drv extends InvertBooleanParameterTest {
void foo(boolean b) {
super.foo(b);
}
}
@@ -0,0 +1,16 @@
class InvertBooleanParameterTest {
void foo(boolean bInverted) {
boolean c = bInverted;
bInverted = true;
}
{
foo(false);
}
}
class Drv extends InvertBooleanParameterTest {
void foo(boolean bInverted) {
super.foo(bInverted);
}
}
@@ -0,0 +1,9 @@
class InvertBooleanParameterTest {
void foo(boolean bInverted) {
boolean c = bInverted;
}
{
foo(false);
}
}