Skip to content

Commit

Permalink
Downgrade to 1.8 and make compile with that version of JDK
Browse files Browse the repository at this point in the history
  • Loading branch information
duckAsteroid committed Feb 2, 2020
1 parent 762fd8f commit d6a949d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ subprojects {
group = 'com.asteroid.duck.sg-cdb'

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/strangegizmo/cdb/CdbElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public final class CdbElement {
* @param data The data value for this element.
*/
public CdbElement(ByteBuffer key, ByteBuffer data) {
this.key = key.clear();
this.data = data.clear();
this.key = (ByteBuffer) key.clear();
this.data = (ByteBuffer) data.clear();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private ByteBuffer readBuffer(int len) throws IOException {
off += count;
}
pos += len;
return buffer.flip();
return (ByteBuffer) buffer.flip();
}


Expand Down

0 comments on commit d6a949d

Please sign in to comment.