Skip to content

Commit

Permalink
Trim Strings to make results more predictable while testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfeiffermway committed Apr 17, 2014
1 parent 55208f6 commit ec189d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/activeandroid/util/SqlParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static List<String> parse(final InputStream stream) throws IOException {
continue;

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

if (sb.length() > 0) {
commands.add(sb.toString());
commands.add(sb.toString().trim());
}

return commands;
Expand Down

0 comments on commit ec189d9

Please sign in to comment.