CPD, which is part of the popular open source static analysis tool PMD, reports the number of duplicate lines in a code base.
CPD是流行的开源静态分析工具pmd的一部分,它报告代码基中重复行的数量。
The problem manifested in Listing 7 is the same in the test-after version of the code from Part 1: the factor-harvesting code goes all the way up to the number itself.
清单7中出现的问题与第1部分中后测试版本中的问题相同:寻找因子的代码会一直循环到数字本身。
For your information (not part of the sample application), here is the code that gets the number of documents in a specified database.
仅出于提供信息的目的(不是样例应用程序的一部分),以下是获取指定数据中文档数量的代码。
应用推荐