S8670: updated rating.java to set field type