Fixed checkstyle code violations in Encoder class