fix enum declaration style
2.2.0 release