Example

public class ClassA {
public void methodA {

boolean new Boolean("true");
//...
}


}
Solution
Initialize the boolean variable with the value "true"

public class ClassA {
public void methodA {

boolean b = true;
//...
}


}