Files
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>