Skip to content

Commit

Permalink
Removed final modifier, so Input/Output can have all methods overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Jul 17, 2015
1 parent a0cb680 commit 22131ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/com/esotericsoftware/kryo/io/Input.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void setTotal (long total) {
}

/** Returns the current position in the buffer. */
final public int position () {
public int position () {
return position;
}

Expand All @@ -129,7 +129,7 @@ public void setPosition (int position) {
}

/** Returns the limit for the buffer. */
final public int limit () {
public int limit () {
return limit;
}

Expand Down
4 changes: 2 additions & 2 deletions src/com/esotericsoftware/kryo/io/Output.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public byte[] toBytes () {
}

/** Returns the current position in the buffer. This is the number of bytes that have not been flushed. */
final public int position () {
public int position () {
return position;
}

Expand All @@ -142,7 +142,7 @@ public void setPosition (int position) {
}

/** Returns the total number of bytes written. This may include bytes that have not been flushed. */
final public long total () {
public long total () {
return total + position;
}

Expand Down

0 comments on commit 22131ec

Please sign in to comment.