From 93f981f72b17376b9a7f62dcd23e2700ff50129e Mon Sep 17 00:00:00 2001 From: "Victoria.Petrakovich" Date: Tue, 8 Apr 2025 20:07:01 +0000 Subject: [PATCH] Fix `Java | Code style issues | Diamond can be replaced with explicit type arguments` inspection description Merge-request: IJ-MR-159746 Merged-by: Victoria Petrakovich GitOrigin-RevId: 87b55783692ab93e7bc5de6d3ec28b83cb2c0b8e --- .../DiamondCanBeReplacedWithExplicitTypeArguments.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-impl/resources/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html b/java/java-impl/resources/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html index 81c00790d82f..fd3cc5465116 100644 --- a/java/java-impl/resources/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html +++ b/java/java-impl/resources/inspectionDescriptions/DiamondCanBeReplacedWithExplicitTypeArguments.html @@ -5,9 +5,9 @@ Reports instantiation of generic classes in which the <> symbol (di

The quick-fix replaces <> (diamond) with explicit type parameters.

Example:

-
List <String> list = new ArrayList<>()
+
List<String> list = new ArrayList<>()

After the quick-fix is applied:

-
List <String> list = new ArrayList<String>()
+
List<String> list = new ArrayList<String>()

Diamond operation appeared in Java 7.