#2784 - Correct documentation for TQRootBean.findSingleAttribute with @Nullable

This commit is contained in:
Rob Bygrave
2022-08-12 15:50:17 +12:00
parent 4cc012b974
commit d703709f14
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -931,7 +931,7 @@ public interface Query<T> extends CancelableQuery {
<A> Set<A> findSingleAttributeSet();
/**
* Execute a query returning a single value of a single property/column.
* Execute a query returning a single value or null for a single property/column.
* <p>
* <pre>{@code
*
@@ -943,6 +943,7 @@ public interface Query<T> extends CancelableQuery {
*
* }</pre>
*/
@Nullable
<A> A findSingleAttribute();
/**
@@ -1767,7 +1767,7 @@ public abstract class TQRootBean<T, R> {
}
/**
* Execute the query returning a single value for a single property.
* Execute the query returning a single value or null for a single property.
* <p>
* <h3>Example</h3>
* <pre>{@code
@@ -1781,6 +1781,7 @@ public abstract class TQRootBean<T, R> {
*
* @return the list of values for the selected property
*/
@Nullable
public <A> A findSingleAttribute() {
return query.findSingleAttribute();
}