diff --git a/java/java-impl/src/inspectionDescriptions/RecordCanBeClass.html b/java/java-impl/src/inspectionDescriptions/RecordCanBeClass.html index b4214698f7e3..b71913e6d3cb 100644 --- a/java/java-impl/src/inspectionDescriptions/RecordCanBeClass.html +++ b/java/java-impl/src/inspectionDescriptions/RecordCanBeClass.html @@ -1,19 +1,18 @@
-Reports all Java records suggesting to desugar them to the ordinary classes. -This inspection could be useful if you need to move Java record to the code base -that uses older Java version where records are not supported. +Suggests to replace records with ordinary classes. +The inspection could be useful if you need to move Java record +to codebases that use earlier Java versions.- Note that the resulting class is not completely equivalent to the original record. - In particular: + Note that the resulting class is not completely equivalent to the original record:
java.lang.Record anymore, so instanceof Record
- checks will now return false.Class.isRecord() or
- Class.getRecordComponents() will produce different result.java.lang.Record,
+ so instanceof Record returns false.Class.isRecord() and
+ Class.getRecordComponents() produce different results.hashCode() implementation may produce different result,
+ as exact formula used to calculate record hashCode is deliberately not specified.Example:
@@ -61,7 +60,7 @@ This record will be converted to } } -This inspection only reports if the configured language level is 14 Preview or 15 Preview.
+This inspection only applies to language level 14 preview and 15 preview.
New in 2020.3
\ No newline at end of file