Commit Graph

11 Commits

Author SHA1 Message Date
amit2103 a5b5b0fcba [BAEL-12090] - Extract versions into properties 2019-02-04 00:06:11 +05:30
mherbaghinyan f1e3ceaea7 text searching Aho-Corasick algorithm 2019-01-09 12:21:43 +04:00
FrancoCorleone 55aff7f5f2 Upgrading commons lang3 and guava dependencies (#5790)
* Upgrading Guava package

* Upgrading commons lang3 package
2018-11-30 04:35:27 -08:00
Larry Chung 84ef2cd246 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 21:06:48 -05:00
the-java-guy 8c3598b441 BAEL - 2166 (#5379)
* Bean Object, server side and client side example for event streaming
example

* BAEL-1628

Access a File from the Classpath in a Spring Application

* inputstream retrieval added

* Removed files related to evaluation article

* + Aligning code to the article. Removed Utility methods and classes

* Precommit fix

* PMD fixes

* Code Review changes
Refactored : whenResourceUtils_thenReadSuccessful

* BAEL-1934

* +indentation correction in pom.xml

* synced with master

* Precommit : rebase

* BAEL-1782

* BAEL - 2166 : Password Generation

* Removed unnecessary javaDoc

* Segregated utility method
2018-10-17 23:11:25 -05:00
Mher Baghinyan 5d7cc11745 Bael 2053 (#5161)
* String performance class

* String intern performance

* String performance replace

* String performance concat

* String performance split

* String performance convert

* String performance comparison

* String performance ==

* String performance check length

* String performance

* String performance matches

* String performance hints

* String performance %d

* fixing benchmark tests

* String performance final

* method naming convention fix

* renaming class name

* remove loops
2018-09-22 10:25:52 +02:00
Saikat 6a09ba47e8 Check String is not empty
Issue: BAEL-2128
2018-09-19 10:56:11 -06:00
sachin29aug 2caf645726 BAEL-8833: Cleanup the maven-dependency-plugin usage 2018-09-07 15:58:10 -04:00
DOHA 409f252b0e remove emojis 2018-09-01 21:57:20 +03:00
amit2103 ca9b13d705 [BAEL-8232] - Removed unwanted dependencies and moved CountCharsExampleUnitTest from core-java to java-strings module 2018-08-19 00:02:02 +05:30
amit2103 ab17b8e697 [BAEL-8232] - Moved java string related code and github links into new module java-strings 2018-08-18 23:24:10 +05:30