检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
重构前 class IntroduceFunctionalParameter { public static void main(String[] args) { System.out.println(generateText()); }
} } 重构后 class ExtractImpl implements ExtractImplInterface { public static void main(String[] args) { new ExtractImpl().print()
5; return true; } return false; } } 重构后 class Invert { private static double a; public static void main
重构前 class ExtractField { public static void main(String[] args) { sayHello(); } private static void sayHello() {
重构前 class ReplaceConstructor { public static void main(String[] args) { new InnerClass("Hello", "World").print(); } private static
重构前 class ExtractConstant { public static void main(String[] args) { sayHello(); } private static void sayHello() {
重构前 class ExtractMethod { public static void main(String[] args) { String text = "Hello World!"
重构前 class Middleman { public static void main(String[] args) { InnerClass innerClass = new InnerClass(); innerClass.print
重构前 class ExtractImpl { public int myField; public static void main(String[] args) { new ExtractImpl().print(); } public
System.out.println(message); } } } 重构后 class Outer { public String message; public static void main(String[] args) { }
} } 重构后 class ExtractParameter { public static void main(String[] args) { sayHello(); } private static void sayHello
= "John"; System.out.println(person.name); } } 重构后 class Person { private String name; public static void main(String[]
重构前 class ExtractMethodObject { public static void main(String[] args) { String text = "Hello World!"
} } 重构后 class ExtractVariable { public static void main(String[] args) { sayHello(); } private static void sayHello
System.out.print(anotherObject.toString()); return this.name; } } 重构后 public class MoveInstanceMethod { public static void main
{ "projects": [ { "domain_id": "65382450e8f64ac0870cd180d14e684b", "is_domain": false, "
重构前 class PullUp { public static void main(String[] args) { new InnerClass().print(); } private static class InnerClass extends
"redirectOutput": true, "module": "uvicorn", "env": {}, "type": "python", "logToFile": false, "args": [ "main
重构前 class ExtractDelegate { public static void main(String[] args) { new ExtractDelegate().print(); } private static final
重构前 class UseInterface { public static void main(String[] args) { InnerClass innerClass = new InnerClass(); print(innerClass