java. Rest constants, fixed #171.