Skip to content

Commit e365e05

Browse files
Copilotbrunoborges
andauthored
Fix invalid Java ?. operator in SessionUiApi Javadoc prose
Agent-Logs-Url: https://github.com/github/copilot-sdk-java/sessions/b5d79053-ae26-4c98-9047-b2457c08b0b8 Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent 8cb5827 commit e365e05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/copilot/sdk/json/SessionUiApi.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
* All methods on this interface throw {@link IllegalStateException} if the host
1313
* does not report elicitation support via
1414
* {@link com.github.copilot.sdk.CopilotSession#getCapabilities()}. Check
15-
* {@code session.getCapabilities().getUi()?.getElicitation() == true} before
16-
* calling.
15+
* {@code session.getCapabilities().getUi() != null &&
16+
* Boolean.TRUE.equals(session.getCapabilities().getUi().getElicitation())}
17+
* before calling.
1718
*
1819
* <h2>Example Usage</h2>
1920
*

0 commit comments

Comments
 (0)