Files
openide/java/java-impl/resources/inspectionDescriptions/UnsupportedChronoFieldUnitCall.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

16 lines
709 B
HTML

<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<html>
<body>
Reports <code>java.time</code> method calls (<code>get()</code>, <code>getLong()</code>,
<code>with()</code>, <code>plus()</code>, <code>minus()</code>) with unsupported <code>java.time.temporal.ChronoField</code> or
<code>java.time.temporal.ChronoUnit</code> enum constants as arguments.
Such calls will throw a <code>UnsupportedTemporalTypeException</code> at runtime.
<p>Example:</p>
<pre><code>
LocalTime localTime = LocalTime.now();
int year = localTime.get(ChronoField.YEAR);
</code></pre>
<!-- tooltip end -->
<p><small>New in 2023.2</small></p>
</body>
</html>