eclipse重构功能,把一个开放的字段转为一个方法

双击一个字段,右键,Refactor,Encapsulate Filed:

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/125868148