Skip to content

Commit e5bf07e

Browse files
committed
Update ChoiceCallbackRefinements
1 parent 8a1563c commit e5bf07e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/demo/src/main/java/com/choiceCallback/ChoiceCallbackRefinements.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@
88
@ExternalRefinementsFor("javax.security.auth.callback.ChoiceCallback")
99
public interface ChoiceCallbackRefinements {
1010

11-
// not supported
12-
@StateRefinement(from="multipleSelectionsAllowed == true", to="multiple(this)")
13-
@StateRefinement(from="multipleSelectionsAllowed == false", to="single(this)")
11+
@StateRefinement(to="multipleSelectionsAllowed ? multiple(this) : single(this)")
1412
public void ChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multipleSelectionsAllowed);
1513

16-
1714
@StateRefinement(from="multiple(this)", to="multiple(this)")
1815
public void setSelectedIndexes(int[] selections);
1916
}
20-

0 commit comments

Comments
 (0)