- 违反规则:[建议]bestpractice-1.6 - **规则描述:** 同一个翻译单元中的标识符不能过于相近。 - **文件路径:** `hutool-core/src/test/java/cn/hutool/core/annotation/CacheableSynthesizedAnnotationAttributeProcessorTest.java` - **代码范围:** 起于行 `20` 列 `23` ; 止于行 `20` 列 `29` - **引入人:** Yanling Ma yanling.ma@ustchcs.com - **Commit信息:** 45cda66528f71eb4de632354b3f99a57e3aa049a 24/09/25 16:21 - **更新时间:** 24/10/29 15:09 - **诊断详情:** [点击跳转](http://www.ustchcs.com/sz-hub/hub/#/projects/myltestgroup/java项/scanTasks/86?currentTab=workbench&tabName=变量【values1】的名称与某些变量过于相似。&tabKey=1797469) - **代码片段:** ``` 15 16 @Test 17 public void getAttributeValueTest() { 18 CacheableSynthesizedAnnotationAttributeProcessor processor = new CacheableSynthesizedAnnotationAttributeProcessor(); 19 20 Map values1 = MapBuilder. create().put("name", "name1").put("value", 111).build(); -- ^^^^^^^ 21 SynthesizedAnnotation annotation1 = new TestSynthesizedAnnotation(1, 0, values1); 22 Map values2 = MapBuilder. create().put("name", "name2").put("value", "value2").build(); 23 SynthesizedAnnotation annotation2 = new TestSynthesizedAnnotation(0, 0, values2); 24 ```