Skip to content

Commit

Permalink
Small improvement of Range.reset (for fluent usage).
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed May 2, 2015
1 parent 81b2e6e commit ff0f8b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rapidoid-buffer/src/main/java/org/rapidoid/data/Range.java
Expand Up @@ -37,17 +37,17 @@ public class Range {

public int length = 0;

public Range() {
}
public Range() {}

public Range(int start, int length) {
this.start = start;
this.length = length;
}

public void reset() {
public Range reset() {
start = -1;
length = 0;
return this;
}

public int limit() {
Expand Down

0 comments on commit ff0f8b1

Please sign in to comment.