1 Star 0 Fork 0

any3ite/codeql

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
NamespaceClass.java 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
Pavel Avgustinov 提交于 2018-08-30 17:48 +08:00 . Migrate Java code to separate QL repo.
/*
* This class is dead because it is never constructed, and the instance methods are not
* called.
*/
public class CustomerActions {
public CustomerActions() {
}
// This method is never called,
public Action createAddCustomerAction () {
return new AddCustomerAction();
}
// These two are used directly
public static class AddCustomerAction extends Action { /* ... */ }
public static class RemoveCustomerAction extends Action { /* ... */ }
}
public static void main(String[] args) {
// Construct the actions directly
Action action = new CustomerActions.AddCustomerAction();
action.run();
Action action = new CustomerActions.RemoveCustomerAction();
action.run();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/any3ite/codeql.git
git@gitee.com:any3ite/codeql.git
any3ite
codeql
codeql
main

搜索帮助