You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package Unused_Method;
-
- public class Unused_Method
- {
-
- private String bad() // bad 未使用的方法
- {
- return "Calculation";
- }
-
- /* FIX: good() method calls calculation() */
- private String calculation() // good 未使用的方法
- {
- return "Calculation";
- }
-
- public void good()
- {
- calculation();
- }
-
- }
|