diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-03-27 23:05:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-03-27 23:05:59 +0100 |
| commit | 093d300d51d8b07435766c1d127b14ac02a0c25a (patch) | |
| tree | 31a094bad0436535940944844d98c3026f746808 /src | |
| parent | de895e1f6b33207c2a5d6a3c0dec4c6aaf6fb68e (diff) | |
Fix missing type params
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java b/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java index 03eaf98..7ae24c0 100644 --- a/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java +++ b/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java @@ -45,7 +45,7 @@ public class RegexTokeniser<T> { Optional<Integer> groupIndex = tryFind(intRange(0, this.rules.size()), index -> matcher.group(index + 1) != null); if (groupIndex.isPresent()) { T tokenType = this.rules.get(groupIndex.get()); - tokens.add(new Token(matcher.regionStart(), tokenType, matcher.group())); + tokens.add(new Token<>(matcher.regionStart(), tokenType, matcher.group())); matcher.region(matcher.end(), value.length()); } else { // Should be impossible |
