Skip to content

Commit c5cf914

Browse files
trixpananthonycorbacho
authored andcommitted
Rename packages to match Java naming conventions (#57)
1 parent 0b90707 commit c5cf914

File tree

17 files changed

+19
-35
lines changed

17 files changed

+19
-35
lines changed

src/main/java/oi/thekraken/grok/api/Converter.java renamed to src/main/java/io/thekraken/grok/api/Converter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package oi.thekraken.grok.api;
1+
package io.thekraken.grok.api;
22

33
import java.text.DateFormat;
44
import java.text.SimpleDateFormat;

src/main/java/oi/thekraken/grok/api/Discovery.java renamed to src/main/java/io/thekraken/grok/api/Discovery.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api;
16+
package io.thekraken.grok.api;
1717

1818
import java.util.ArrayList;
1919
import java.util.Collections;
@@ -27,10 +27,9 @@
2727
import java.util.regex.Matcher;
2828
import java.util.regex.Pattern;
2929

30+
import io.thekraken.grok.api.exception.GrokException;
3031
import org.apache.commons.lang3.StringUtils;
3132

32-
import oi.thekraken.grok.api.exception.GrokException;
33-
3433
/**
3534
* {@code Discovery} try to find the best pattern for the given string.
3635
*

src/main/java/oi/thekraken/grok/api/Garbage.java renamed to src/main/java/io/thekraken/grok/api/Garbage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api;
16+
package io.thekraken.grok.api;
1717

1818
import java.util.ArrayList;
1919
import java.util.Iterator;

src/main/java/oi/thekraken/grok/api/Grok.java renamed to src/main/java/io/thekraken/grok/api/Grok.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api;
16+
package io.thekraken.grok.api;
1717

1818
import java.io.BufferedReader;
1919
import java.io.File;
@@ -30,14 +30,12 @@
3030
import java.util.regex.Pattern;
3131

3232

33+
import io.thekraken.grok.api.exception.GrokException;
3334
import org.apache.commons.lang3.StringUtils;
3435
import org.slf4j.Logger;
3536
import org.slf4j.LoggerFactory;
3637

3738

38-
import oi.thekraken.grok.api.exception.GrokException;
39-
40-
4139
/**
4240
* {@code Grok} parse arbitrary text and structure it.<br>
4341
*

src/main/java/oi/thekraken/grok/api/GrokUtils.java renamed to src/main/java/io/thekraken/grok/api/GrokUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package oi.thekraken.grok.api;
1+
package io.thekraken.grok.api;
22

33
import java.util.LinkedHashMap;
44
import java.util.LinkedHashSet;

src/main/java/oi/thekraken/grok/api/Match.java renamed to src/main/java/io/thekraken/grok/api/Match.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api;
16+
package io.thekraken.grok.api;
1717

1818

1919
import java.util.ArrayList;

src/main/java/oi/thekraken/grok/api/Pile.java renamed to src/main/java/io/thekraken/grok/api/Pile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api;
16+
package io.thekraken.grok.api;
1717

1818
import java.io.File;
1919
import java.util.*;
2020

21-
import oi.thekraken.grok.api.exception.GrokError;
21+
import io.thekraken.grok.api.exception.GrokError;
2222

2323
/**
2424
* Set of Groks instance

src/main/java/oi/thekraken/grok/api/exception/GrokError.java renamed to src/main/java/io/thekraken/grok/api/exception/GrokError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api.exception;
16+
package io.thekraken.grok.api.exception;
1717

1818
/**
1919
* Not used, too much c style..

src/main/java/oi/thekraken/grok/api/exception/GrokException.java renamed to src/main/java/io/thekraken/grok/api/exception/GrokException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
package oi.thekraken.grok.api.exception;
16+
package io.thekraken.grok.api.exception;
1717

1818
/**
1919
* Signals that an {@code Grok} exception of some sort has occurred.

src/test/java/io/thekraken/grok/api/ApacheDataTypeTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
import org.junit.Test;
1414
import org.junit.runners.MethodSorters;
1515

16-
import oi.thekraken.grok.api.Grok;
17-
import oi.thekraken.grok.api.Match;
18-
import oi.thekraken.grok.api.exception.GrokException;
16+
import io.thekraken.grok.api.exception.GrokException;
1917

2018

2119
@FixMethodOrder(MethodSorters.NAME_ASCENDING)

0 commit comments

Comments
 (0)