首页> 外文会议>International Conference on Data Science, Machine Learning and Applications >Implementation of Code Cleanup and Code Standard Refactoring with PMD and UCD Tool
【24h】

Implementation of Code Cleanup and Code Standard Refactoring with PMD and UCD Tool

机译:使用PMD和UCD工具实现代码清除和代码标准重构

获取原文

摘要

Software refactoring is the procedure that requires alteration in the source code to keep away from unused variable or duplicated variable, unused method and deprecated method. In this paper, work is done for implementation of CCACSR with PMD and UCD tool, which is useful for software refactoring. This paper focuses on CCACSR that includes mainly three modules, first to detect and then remove unused or duplicate variable from source code, second to detect and then remove or comment unused method from source code and third module is to find out the method which will be replaced by its equivalent new method of source code, so that method can be changed but its external behavior should not be changed. Other than this a comparison of developed system result with PMD and UCD tools is also performed. For this a program of 15—430 lines of code is developed. This code is checked with available platform and found results very effective. And same code is checked with PMD and UCD tools. Finally, the comparison of the results is performed with these tools. The detection of cloned variable or unused variable can be done by the concept of method and classes of AST parser and JAVA parser of eclipse from the existing source code, after removing the cloned or unused variable from source code and save the associated information in file for further used purpose. Similarly to detect the unused method from existing source code prepared by the concept of method and classes of AST parser and JAVA parser of eclipse and store related file after comment or removing particular method from source code. For Refactoring swing API is used, which is to find out the old method of older version and will be replaced by new method of newer version of Java. We compare our IDE CCACSR with PMD&UC Detector, which detects only unnecessary code but in our IDE and we determine as well as remove it from Java source file.
机译:软件重构是需要更改源代码以远离未使用的变量或重复的变量,未使用的方法和不建议使用的方法的过程。本文完成了使用PMD和UCD工具实施CCACSR的工作,这对于软件重构很有用。本文主要针对CCACSR,它主要包括三个模块,首先是从源代码中检测然后删除未使用或重复的变量,其次是从源代码中检测然后删除或注释未使用的方法,第三个模块是找出将替换为其等效的新源代码方法,以便可以更改该方法,但不应更改其外部行为。除此之外,还对开发的系统结果与PMD和UCD工具进行了比较。为此,开发了一个15-430行代码的程序。使用可用的平台检查了此代码,并发现结果非常有效。并使用PMD和UCD工具检查相同的代码。最后,使用这些工具对结果进行比较。在从源代码中删除克隆或未使用变量并将关联信息保存在文件中后,可以通过现有源代码中的AST解析器和eclipse的JAVA Eclipse解析器的方法和类的概念完成对克隆变量或未使用变量的检测。进一步使用的目的。类似地,从Eclipse的AST解析器和JAVA解析器的方法和类的概念准备的现有源代码中检测未使用的方法,并在注释或从源代码中删除特定方法后存储相关文件。对于重构,使用了swing API,该API可以查找较旧版本的旧方法,并将由Java较新版本的新方法代替。我们将IDE CCACSR与PMD&UC Detector进行了比较,后者仅检测不必要的代码,但是在我们的IDE中,我们确定并将其从Java源文件中删除。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号