mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #8868 from alanorth/upgrade-checkstyle
Upgrade checkstyle
This commit is contained in:
@@ -313,7 +313,7 @@ public abstract class AbstractHibernateDAO<T> implements GenericDAO<T> {
|
|||||||
org.hibernate.query.Query hquery = query.unwrap(org.hibernate.query.Query.class);
|
org.hibernate.query.Query hquery = query.unwrap(org.hibernate.query.Query.class);
|
||||||
Stream<T> stream = hquery.stream();
|
Stream<T> stream = hquery.stream();
|
||||||
Iterator<T> iter = stream.iterator();
|
Iterator<T> iter = stream.iterator();
|
||||||
return new AbstractIterator<T> () {
|
return new AbstractIterator<T>() {
|
||||||
@Override
|
@Override
|
||||||
protected T computeNext() {
|
protected T computeNext() {
|
||||||
return iter.hasNext() ? iter.next() : endOfData();
|
return iter.hasNext() ? iter.next() : endOfData();
|
||||||
|
2
pom.xml
2
pom.xml
@@ -295,7 +295,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.puppycrawl.tools</groupId>
|
<groupId>com.puppycrawl.tools</groupId>
|
||||||
<artifactId>checkstyle</artifactId>
|
<artifactId>checkstyle</artifactId>
|
||||||
<version>8.45.1</version>
|
<version>10.19.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
Reference in New Issue
Block a user