Skip to content

Commit ec189d9

Browse files
committed
Trim Strings to make results more predictable while testing.
1 parent 55208f6 commit ec189d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/activeandroid/util/SqlParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static List<String> parse(final InputStream stream) throws IOException {
4949
continue;
5050

5151
} else if (state == STATE_NONE && c == ';') {
52-
final String command = sb.toString();
52+
final String command = sb.toString().trim();
5353
commands.add(command);
5454
sb.setLength(0);
5555
continue;
@@ -78,7 +78,7 @@ public static List<String> parse(final InputStream stream) throws IOException {
7878
}
7979

8080
if (sb.length() > 0) {
81-
commands.add(sb.toString());
81+
commands.add(sb.toString().trim());
8282
}
8383

8484
return commands;

0 commit comments

Comments
 (0)