/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package javaapplication2; /** * * @author sdedic */ public class NewClass { public void method(boolean a, boolean b) { if (a/*a*/) { System.out.println("ok"); } else if (b) { System.out.println("ok"); } } public void foo() { if (NewClass != null) ; } }