浏览代码

Merge pull request #1420 from cal101/jdt-UseDiamondOperatorCleanUp

[cleanup] erefactor/EclipseJdt - Use diamond operator
Golden Looly 4 年之前
父节点
当前提交
a6a420c848

+ 1 - 1
hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java

@@ -103,7 +103,7 @@ public class HashCodeBuilder implements Builder<Integer> {
      *
      * @since 2.3
      */
-    private static final ThreadLocal<Set<IDKey>> REGISTRY = new ThreadLocal<Set<IDKey>>();
+    private static final ThreadLocal<Set<IDKey>> REGISTRY = new ThreadLocal<>();
 
     /*
      * NOTE: we cannot store the actual objects in a HashSet, as that would use the very hashCode()

+ 1 - 1
hutool-json/src/test/java/cn/hutool/json/test/bean/report/CaseReport.java

@@ -14,7 +14,7 @@ public class CaseReport {
 	/**
 	 * 包含的测试步骤报告
 	 */
-	private List<StepReport> stepReports = new ArrayList<StepReport>();
+	private List<StepReport> stepReports = new ArrayList<>();
 	
 	public List<StepReport> getStepReports() {
 		return stepReports;

+ 1 - 1
hutool-json/src/test/java/cn/hutool/json/test/bean/report/SuiteReport.java

@@ -14,7 +14,7 @@ public class SuiteReport {
 	/**
 	 * 包含的用例测试报告
 	 */
-	private List<CaseReport> caseReports = new ArrayList<CaseReport>();
+	private List<CaseReport> caseReports = new ArrayList<>();
 	
 	public List<CaseReport> getCaseReports() {
 		return caseReports;