fixed warnings and errors related to parameters should be final, access to static method.
fixed warnings and errors related to scope of variables, need bracers, parameters should be final, method is not designed for extension, constant name must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'  and I have changed some tests.