2018-08-18 11:24:24 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>java-strings</artifactId>
|
|
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<name>java-strings</name>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>parent-java</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<relativePath>../parent-java</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
<version>${commons-io.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
<version>${log4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
<version>${commons-codec.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- test scoped -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.assertj</groupId>
|
|
|
|
<artifactId>assertj-core</artifactId>
|
|
|
|
<version>${assertj.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.openjdk.jmh</groupId>
|
|
|
|
<artifactId>jmh-core</artifactId>
|
|
|
|
<version>${jmh-core.version}</version>
|
|
|
|
</dependency>
|
2018-09-22 04:25:52 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.openjdk.jmh</groupId>
|
|
|
|
<artifactId>jmh-generator-annprocess</artifactId>
|
|
|
|
<version>${jmh-core.version}</version>
|
|
|
|
</dependency>
|
2018-08-18 11:24:24 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.ibm.icu</groupId>
|
|
|
|
<artifactId>icu4j</artifactId>
|
|
|
|
<version>${icu4j.version}</version>
|
|
|
|
</dependency>
|
2018-09-19 12:56:11 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<version>${guava.version}</version>
|
|
|
|
</dependency>
|
2018-09-01 14:57:20 -04:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.vdurmont</groupId>
|
|
|
|
<artifactId>emoji-java</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${emoji-java.version}</version>
|
2018-09-01 14:57:20 -04:00
|
|
|
</dependency>
|
BAEL-2142 Code revision to WordIndexer and JUnit (#5484)
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Resolve merge conflict
Added dependency for org.passay and for org.apache.commons
* Create searching/WordIndexer.java
* Create WordIndexerUnitTest.java
* Updated in response to Kevin Gilmore's questions
"What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario."
* Updated WordIndexer in response to Kevin Gilmore
Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed)
The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed)
* saving changes...
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Respond to Kevin Gilmore's code changes
* Debugging code change to JUnit
2018-10-26 22:06:48 -04:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${junit-jupiter-api.version}</version>
|
BAEL-2142 Code revision to WordIndexer and JUnit (#5484)
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Resolve merge conflict
Added dependency for org.passay and for org.apache.commons
* Create searching/WordIndexer.java
* Create WordIndexerUnitTest.java
* Updated in response to Kevin Gilmore's questions
"What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario."
* Updated WordIndexer in response to Kevin Gilmore
Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed)
The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed)
* saving changes...
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Respond to Kevin Gilmore's code changes
* Debugging code change to JUnit
2018-10-26 22:06:48 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-library</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${hamcrest-library.version}</version>
|
BAEL-2142 Code revision to WordIndexer and JUnit (#5484)
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Resolve merge conflict
Added dependency for org.passay and for org.apache.commons
* Create searching/WordIndexer.java
* Create WordIndexerUnitTest.java
* Updated in response to Kevin Gilmore's questions
"What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario."
* Updated WordIndexer in response to Kevin Gilmore
Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed)
The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed)
* saving changes...
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Respond to Kevin Gilmore's code changes
* Debugging code change to JUnit
2018-10-26 22:06:48 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2018-10-18 00:11:25 -04:00
|
|
|
<!-- Added for password generation -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.passay</groupId>
|
|
|
|
<artifactId>passay</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${passay.version}</version>
|
2018-10-18 00:11:25 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-text</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${commons-text.version}</version>
|
2018-10-18 00:11:25 -04:00
|
|
|
</dependency>
|
BAEL-2142 Code revision to WordIndexer and JUnit (#5484)
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Resolve merge conflict
Added dependency for org.passay and for org.apache.commons
* Create searching/WordIndexer.java
* Create WordIndexerUnitTest.java
* Updated in response to Kevin Gilmore's questions
"What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario."
* Updated WordIndexer in response to Kevin Gilmore
Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed)
The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed)
* saving changes...
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Respond to Kevin Gilmore's code changes
* Debugging code change to JUnit
2018-10-26 22:06:48 -04:00
|
|
|
|
2019-01-09 03:21:43 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.ahocorasick</groupId>
|
|
|
|
<artifactId>ahocorasick</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${ahocorasick.version}</version>
|
2019-01-09 03:21:43 -05:00
|
|
|
</dependency>
|
|
|
|
|
2018-08-18 11:24:24 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<finalName>java-strings</finalName>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2019-02-03 13:36:11 -05:00
|
|
|
<version>${maven-compiler-plugin.version}</version>
|
2018-08-18 11:24:24 -04:00
|
|
|
<configuration>
|
2019-02-03 13:36:11 -05:00
|
|
|
<source>${java.version}</source>
|
|
|
|
<target>${java.version}</target>
|
2018-08-18 11:24:24 -04:00
|
|
|
<compilerArgument>-parameters</compilerArgument>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- util -->
|
2018-11-30 07:35:27 -05:00
|
|
|
<commons-lang3.version>3.8.1</commons-lang3.version>
|
2018-08-18 11:24:24 -04:00
|
|
|
<commons-codec.version>1.10</commons-codec.version>
|
|
|
|
<!-- testing -->
|
|
|
|
<assertj.version>3.6.1</assertj.version>
|
|
|
|
<jmh-core.version>1.19</jmh-core.version>
|
|
|
|
<icu4j.version>61.1</icu4j.version>
|
2018-11-30 07:35:27 -05:00
|
|
|
<guava.version>27.0.1-jre</guava.version>
|
2019-02-03 13:36:11 -05:00
|
|
|
<emoji-java.version>4.0.0</emoji-java.version>
|
|
|
|
<junit-jupiter-api.version>5.3.1</junit-jupiter-api.version>
|
|
|
|
<hamcrest-library.version>1.3</hamcrest-library.version>
|
|
|
|
<passay.version>1.3.1</passay.version>
|
|
|
|
<commons-text.version>1.4</commons-text.version>
|
|
|
|
<ahocorasick.version>0.4.0</ahocorasick.version>
|
2018-08-18 11:24:24 -04:00
|
|
|
</properties>
|
|
|
|
|
BAEL-2142 Code revision to WordIndexer and JUnit (#5484)
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018
* Resolve merge conflict
Added dependency for org.passay and for org.apache.commons
* Create searching/WordIndexer.java
* Create WordIndexerUnitTest.java
* Updated in response to Kevin Gilmore's questions
"What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario."
* Updated WordIndexer in response to Kevin Gilmore
Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed)
The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed)
* saving changes...
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java
Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>
* Respond to Kevin Gilmore's code changes
* Debugging code change to JUnit
2018-10-26 22:06:48 -04:00
|
|
|
</project>
|