minor improvement

pull/282/head
Nikita 9 years ago
parent 557c2e6e31
commit 4b70c3f138

@ -60,10 +60,10 @@ public class NestedMultiDecoder2<T> implements MultiDecoder<Object> {
@Override @Override
public Object decode(List<Object> parts, State state) { public Object decode(List<Object> parts, State state) {
if (getCounter(state) == 2) {
setCounter(state, 0);
}
int counter = getCounter(state); int counter = getCounter(state);
if (counter == 2) {
counter = 0;
}
counter++; counter++;
setCounter(state, counter); setCounter(state, counter);
MultiDecoder<?> decoder = null; MultiDecoder<?> decoder = null;

Loading…
Cancel
Save