Skip to content

Commit 3abfaba

Browse files
author
mpv1989
committed
Fix compatibility of ArangoCursor#filter with Java 6
1 parent a3e98c3 commit 3abfaba

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- fixed compatibility of `ArangoCursor#filter` with Java 6
12+
913
## [5.0.1] - 2018-09-25
1014

1115
### Fixed

pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,6 @@
121121
<target>1.6</target>
122122
<compilerArgument></compilerArgument>
123123
</configuration>
124-
<executions>
125-
<execution>
126-
<id>test-compile</id>
127-
<phase>process-test-sources</phase>
128-
<goals>
129-
<goal>testCompile</goal>
130-
</goals>
131-
<configuration>
132-
<source>1.6</source>
133-
<target>1.7</target>
134-
</configuration>
135-
</execution>
136-
</executions>
137124
</plugin>
138125

139126
<plugin>

src/main/java/com/arangodb/internal/cursor/ArangoFilterIterator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@ public T next() {
6666
next = null;
6767
return tmp;
6868
}
69+
70+
@Override
71+
public void remove() {
72+
throw new UnsupportedOperationException();
73+
}
6974
}

src/main/java/com/arangodb/internal/cursor/ArangoMappingIterator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ public T next() {
4848
return mapper.apply(iterator.next());
4949
}
5050

51+
@Override
52+
public void remove() {
53+
throw new UnsupportedOperationException();
54+
}
55+
5156
}

0 commit comments

Comments
 (0)