Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit ed328c8

Browse files
committed
#63 - Add @SafeVarargs annotation on TQAssocBean
1 parent 3e0632d commit ed328c8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/main/java/io/ebean/typequery/TQAssocBean.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,35 @@ public R fetchAll() {
8080
/**
8181
* Eagerly fetch this association fetching some of the properties.
8282
*/
83-
protected R fetchProperties(TQProperty<?>... props) {
83+
@SafeVarargs
84+
protected final R fetchProperties(TQProperty<?>... props) {
8485
((TQRootBean) _root).query().fetch(_name, properties(props));
8586
return _root;
8687
}
8788

8889
/**
8990
* Eagerly fetch query this association fetching some of the properties.
9091
*/
91-
protected R fetchQueryProperties(TQProperty<?>... props) {
92+
@SafeVarargs
93+
protected final R fetchQueryProperties(TQProperty<?>... props) {
9294
((TQRootBean) _root).query().fetchQuery(_name, properties(props));
9395
return _root;
9496
}
9597

9698
/**
9799
* Eagerly fetch query this association fetching some of the properties.
98100
*/
99-
protected R fetchLazyProperties(TQProperty<?>... props) {
101+
@SafeVarargs
102+
protected final R fetchLazyProperties(TQProperty<?>... props) {
100103
((TQRootBean) _root).query().fetchLazy(_name, properties(props));
101104
return _root;
102105
}
103106

104107
/**
105108
* Append the properties as a comma delimited string.
106109
*/
107-
protected String properties(TQProperty<?>... props) {
110+
@SafeVarargs
111+
protected final String properties(TQProperty<?>... props) {
108112
StringBuilder selectProps = new StringBuilder(50);
109113
for (int i = 0; i < props.length; i++) {
110114
if (i > 0) {

0 commit comments

Comments
 (0)