Skip to content

Commit 9283198

Browse files
author
a-brandt
committed
fixed sonar issue
1 parent 8d06ea4 commit 9283198

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/arangodb/entity/CursorEntity.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,16 @@ public class CursorEntity<T> extends BaseEntity implements Iterable<T> {
7373
/**
7474
* A list of objects containing the results
7575
*/
76-
List<? extends T> results;
76+
List<T> results;
7777

7878
/**
7979
* A list of warnings
8080
*/
8181
List<WarningEntity> warnings;
8282

83-
@SuppressWarnings("unchecked")
8483
@Override
8584
public Iterator<T> iterator() {
86-
return (Iterator<T>) CollectionUtils.safetyIterator(results);
85+
return CollectionUtils.safetyIterator(results);
8786
}
8887

8988
/**
@@ -121,7 +120,7 @@ private void rangeCheck(int index) {
121120
*
122121
* @return list of DocumentEntity objects
123122
*/
124-
public List<? extends T> getResults() {
123+
public List<T> getResults() {
125124
return results;
126125
}
127126

0 commit comments

Comments
 (0)