Skip to content

Commit 58e166c

Browse files
authored
Merge pull request #1674 from mbenson/MODE-2732
Mode 2732 eclipse soothing
2 parents fcbb2d9 + a831ded commit 58e166c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/Session.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* A specialization of the standard JCR {@link javax.jcr.Session} interface that returns the ModeShape-specific extension
3535
* interfaces from {@link #getWorkspace()}, {@link #getRepository()}, and {@link #getValueFactory()}.
3636
*/
37-
@SuppressWarnings("deprectation")
3837
public interface Session extends javax.jcr.Session {
3938

4039
@Override

modeshape-jcr/src/main/java/org/modeshape/jcr/JcrNodeTypeIterator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class JcrNodeTypeIterator implements NodeTypeIterator {
3030

3131
private int size;
3232
private int position;
33-
private Iterator<NodeType> iterator;
33+
private Iterator<? extends NodeType> iterator;
3434

3535
JcrNodeTypeIterator( Collection<? extends NodeType> values ) {
3636
this.iterator = Collections.unmodifiableCollection(values).iterator();
@@ -69,8 +69,7 @@ public boolean hasNext() {
6969

7070
@Override
7171
public Object next() {
72-
position++;
73-
return iterator.next();
72+
return nextNodeType();
7473
}
7574

7675
@Override

0 commit comments

Comments
 (0)