System.out.println("Instance created in static initializer before static field " + nameConstant + " assigned"); System.out.println("Class is " + className);
bugReporter.reportBug(new BugInstance("SI_INSTANCE_BEFORE_FINALS_ASSIGNED", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this, instanceCreatedPC));
    public void sawOpcode(int seen) {        if (seen == PUTSTATIC && classConstant.equals(className))  {		if (instanceCreated && !instanceCreatedWarningGiven)  {			String okSig = "L" + className + ";";			if (!okSig.equals(sigConstant)) {			  System.out.println("Instance created in static initializer before static field " + nameConstant + " assigned");			  System.out.println("Class is " + className);			  instanceCreatedWarningGiven = true;			  }			}		}        else if (seen == NEW && classConstant.equals(className))  {		instanceCreated = true;		}        else if (seen == PUTSTATIC || seen == GETSTATIC || seen == INVOKESTATIC			|| seen == NEW)  		if (PC + 6 < codeBytes.length) 			requires.add(betterClassConstant);	}