Skip to content

Commit

Permalink
Move javadoc paragraph attached to wrong method
Browse files Browse the repository at this point in the history
  • Loading branch information
jcflack committed Jun 16, 2024
1 parent 3a617a9 commit f9e962f
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
* different, so the two functions can be distinguished by overloading). A
* typical case would be the twin of a cross-type function like {@code add}
* that is commutative, so using the same name makes sense.
*<p>
* When derived by commutation, the synthetic function simply calls the
* base function with the parameters swapped. For negation, the base
* function must return {@code boolean} or {@code Boolean}, and the
* synthetic function returns true for false, false for true, and null
* for null. This will give familiar SQL behavior in many cases. For a base
* function with {@code onNullInput=CALLED}, if it can return non-null
* boolean results on some null inputs, it may be necessary to code
* a negator or commutator by hand if the synthetic one would not have
* the intended semantics.
*/
String[] synthetic() default {};

Expand All @@ -129,16 +139,6 @@
* (which must be different) reversed. A typical case would be the twin of a
* cross-type operator like {@code +} that is commutative, so using the same
* name makes sense.
*<p>
* When derived by commutation, the synthetic function simply calls the
* base function with the parameters swapped. For negation, the base
* function must return {@code boolean} or {@code Boolean}, and the
* synthetic function returns true for false, false for true, and null
* for null. This will give familiar SQL behavior in many cases. For a base
* function with {@code onNullInput=CALLED}, if it can return non-null
* boolean results on some null inputs, it may be necessary to code
* a negator or commutator by hand if the synthetic one would not have
* the intended semantics.
*/
String[] commutator() default {};

Expand Down

0 comments on commit f9e962f

Please sign in to comment.