Skip to content

Commit

Permalink
Fix scala style.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jul 14, 2015
1 parent 815a9cb commit 57861f7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ private static String unitRegex(String unit) {
return "(?:\\s+(-?\\d+)\\s+" + unit + "s?\\s*)?";
}

private static Pattern p = Pattern.compile("\\s*interval" + unitRegex("year") + unitRegex("month") +
unitRegex("week") + unitRegex("day") + unitRegex("hour") + unitRegex("minute") +
unitRegex("second") + unitRegex("millisecond") + unitRegex("microsecond"));
private static Pattern p = Pattern.compile("\\s*interval" + unitRegex("year") +
unitRegex("month") + unitRegex("week") + unitRegex("day") + unitRegex("hour") +
unitRegex("minute") + unitRegex("second") + unitRegex("millisecond") +
unitRegex("microsecond"));

private static long toLong(String s) {
if (s == null) {
Expand Down

0 comments on commit 57861f7

Please sign in to comment.