Skip to content

Commit

Permalink
Reformat code and release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Feb 4, 2020
1 parent 4464253 commit 003b106
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Include this dependency in your POM. Be sure to check for the latest version in
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>aho-corasick-double-array-trie</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.hankcs</groupId>
<artifactId>aho-corasick-double-array-trie</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>

<name>AhoCorasickDoubleArrayTrie</name>
<url>https://github.com/hankcs/AhoCorasickDoubleArrayTrie</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ private void insert(List<Map.Entry<Integer, State>> firstSiblings)
{
Queue<Map.Entry<Integer, List<Map.Entry<Integer, State>>>> siblingQueue = new ArrayDeque<Map.Entry<Integer, List<Map.Entry<Integer, State>>>>();
siblingQueue.add(new AbstractMap.SimpleEntry<Integer, List<Map.Entry<Integer, State>>>(null, firstSiblings));

while (siblingQueue.isEmpty() == false)
{
insert(siblingQueue);
Expand All @@ -901,10 +901,11 @@ private void insert(List<Map.Entry<Integer, State>> firstSiblings)
*
* @param siblingQueue a queue holding all siblings being inserted and the position to insert them
*/
private void insert(Queue<Map.Entry<Integer, List<Map.Entry<Integer, State>>>> siblingQueue) {
private void insert(Queue<Map.Entry<Integer, List<Map.Entry<Integer, State>>>> siblingQueue)
{
Map.Entry<Integer, List<Map.Entry<Integer, State>>> tCurrent = siblingQueue.remove();
List<Map.Entry<Integer, State>> siblings = tCurrent.getValue();

int begin = 0;
int pos = Math.max(siblings.get(0).getKey() + 1, nextCheckPos) - 1;
int nonzero_num = 0;
Expand Down

0 comments on commit 003b106

Please sign in to comment.