1 parent 7403690 commit b7c7986Copy full SHA for b7c7986
1 file changed
src/main/java/com/github/underscore/Json.java
@@ -770,7 +770,7 @@ private void pauseCapture() {
770
private String endCapture() {
771
int end = current == -1 ? index : index - 1;
772
String captured;
773
- if (captureBuffer.length() > 0) {
+ if (!captureBuffer.isEmpty()) {
774
captureBuffer.append(json, captureStart, end);
775
captured = captureBuffer.toString();
776
captureBuffer.setLength(0);
0 commit comments