Commit Graph

461 Commits

Author SHA1 Message Date
François Dupire 5fbc94ae90 [JAVA-589] Reviewed build time (#8800)
* [JAVA-589] Reviewed build time

* Renamed HibernateTimeZoneTest to HibernateTimeZoneIntTest

* [JAVA-873] Extracted benchmarking part of unit test into its own LiveTest

* Revert "[JAVA-873] Extracted benchmarking part of unit test into its own LiveTest"

This reverts commit 10c05ebb7e43be0a04ed377c453f0aa92c81117c.

* [JAVA-906] Renamed PrimeNumberUnitTest to PrimeNumberManualTest in order to avoid it being runned

* [JAVA-906] Renamed HibernateTimeZoneIntTest to HibernateTimeZoneIntegrationTest

* [JAVA-906] Removed package-lock.json and added it to .gitignore
2020-03-12 13:01:06 +05:30
Roger Yates fad2d2a67c BAEL-3603 Add line separator to preserve lines read 2020-03-12 06:12:42 +10:00
Unknown 880f922df3 BAEL-3855
identation
2020-03-11 20:13:12 +01:00
Unknown e501b2092f BAEL-3855 2020-03-11 20:09:14 +01:00
Unknown e09d87a604 BAEL-3855 2020-03-11 19:56:30 +01:00
Unknown 407861afac BAEL-3855 2020-03-11 18:18:05 +01:00
Unknown 2302a4abb7 BAEL-3855 2020-03-11 14:31:36 +01:00
Michele ff4ac10bb2 BAEL-3855 2020-03-11 13:19:25 +01:00
mguarnaccia 52608c32cb Delete LockStriped.java 2020-03-11 11:21:01 +01:00
mguarnaccia 1470deb187 Delete CoarseGrained.java 2020-03-11 11:20:37 +01:00
kwoyke 07bec4d5b2 BAEL-3775: Clean up unit tests for Stack (#8837) 2020-03-11 06:43:46 +01:00
Cavero Barca 804b4c42aa Keep only null as stripChar in the Apache Commons example 2020-03-10 14:17:19 +01:00
Eric Martin 335127f269 Merge pull request #8808 from johnA1331/master
github-related test fix - 18-02-2020
2020-03-09 20:49:51 -05:00
Roger Yates 8efe817cd3 BAEL-3603 Add test examples for Java IO versus NIO article 2020-03-10 09:19:13 +10:00
Cavero Barca aaabfa4ab2 Add null as stripChar for Apache Commons StringUtils example 2020-03-10 00:06:36 +01:00
Florin Hriscu ae6aaf40f0 BAEL-3859 - Add implementation for AtomicMarkableReference article. 2020-03-10 00:50:53 +02:00
Unknown 636e76ade0 BAEL-3855
Updated
2020-03-09 16:43:35 +01:00
eelhazati e0f49f5575 move code to core-java-security-2 2020-03-08 22:28:17 +01:00
Loredana Crusoveanu eda766c83c Merge pull request #8830 from amit2103/JAVA-5
clean up plugins from pom file
2020-03-08 22:16:34 +02:00
amit.pandey 75200b6b20 clean up plugins from pom file 2020-03-08 14:23:30 +05:30
Josh Cummings f35e28d4dc Merge pull request #8796 from ashleyfrieze/BAEL-3905-how-to-replace-tokens-in-strings
BAEL-3905 - replacing tokens tests and implementation
2020-03-07 15:44:30 -07:00
Josh Cummings 3cd2cf7cd1 Merge pull request #8784 from dupirefr/team/JAVA-131-hamcrest_version_update
[JAVA-131] Updated hamcrest version from 1.3 to 2.2
2020-03-07 14:12:21 -07:00
Ashley Frieze ce75bc8ddf BAEL-3905 - replacing tokens tests and implementation 2020-03-07 17:50:50 +00:00
johnA1331 7e829a4ab8 Update README.md 2020-03-07 11:11:41 +08:00
johnA1331 7ade5a3abf Update README.md 2020-03-07 11:11:01 +08:00
johnA1331 696eaa8666 Update README.md 2020-03-07 11:06:09 +08:00
Cavero Barca 020c3bd8c9 Clean Apache Commons and Guava functions and tests 2020-03-06 21:58:00 +01:00
Somnath Musib 6600942cef BAEL-3838 Capturing a Java Thread Dump (#8780)
Co-authored-by: Somnath Musib <somnath.musib@voltbank.com.au>
2020-03-06 17:12:06 +00:00
eelhazati 735ce1e7d5 revert 2020-03-06 15:19:36 +01:00
dupirefr cc79530c9c [JAVA-131] Unifying hamcrest-core and hamcrest-libraries dependencies under hamcrest 2020-03-05 07:51:28 +01:00
dupirefr 0a6ee0c797 [JAVA-131] Kept difference between hamcrest and hamcrest-all 2020-03-05 07:51:22 +01:00
Jonathan Cook 84a0cb5498 BAEL-3854 - Pattern Matching for instanceof in Java 14 (#8799)
* BAEL-3491 - Check for null before calling parse in the
Double.parseDouble

* BAEL-3491 - Check for null before calling parse in the
Double.parseDouble

- Return to indentation with spaces.

* BAEL-3854 - Pattern Matching for instanceof in Java 14

* BAEL-3854 - Pattern Matching for instanceof in Java 14 - add unit test
2020-03-02 22:15:28 -08:00
Greg e8da9d39f7 Merge pull request #8742 from amdegregorio/BAEL-3840
BAEL-3840 Suppressed Exceptions in Java
2020-03-02 10:05:23 -05:00
johnA1331 78029ac429 Delete README.md 2020-03-02 18:35:52 +08:00
johnA1331 07b9fb4be0 Update README.md 2020-03-02 14:48:49 +08:00
johnA1331 52577b5e2b Update README.md 2020-03-02 14:34:11 +08:00
eelhazati 1bfac7ea53 move jaas to core security module. 2020-02-29 16:46:05 +01:00
Cavero Barca f5a18c6dca Reformat and correct the indentation 2020-02-28 23:53:33 +01:00
Cavero Barca 647e4ffe0e Add the functionality and the unit testing for LTrim and RTrim 2020-02-28 21:00:01 +01:00
Cavero Barca 76f8c05fac Fix the Case Insensitive article name and github references 2020-02-28 18:55:48 +01:00
amdegregorio d1ed8af579 BAEL-3840 Adjust examples based on editor feedback 2020-02-28 06:54:27 -05:00
Unknown 79be75cd74 BAEL-3855
Moved to java-core-modules folder
2020-02-25 10:31:59 +01:00
Eric Martin bbd41d5672 Merge pull request #8751 from johnA1331/master
Bi-Monthly Test Fix - BAEL-22265 and BAEL-22266
2020-02-24 20:47:31 -06:00
Jonathan Cook 242bd4f13d Merge pull request #8688 from psoares/master
[BAEL-3601] How to Lock Files in Java
2020-02-24 23:10:40 +01:00
François Dupire e673011d6b [BAEL-3488] Timer Class (#8769)
* [BAEL-3488] Moving code to core-java where the original article code was located

* [BAEL-3488] Moved original code under timer package
2020-02-23 08:53:12 -08:00
johnA1331 b30112554a Update README.md 2020-02-19 11:33:53 +08:00
amdegregorio 83539b1b3e BAEL-3840 Fix example for section 2.1. 2020-02-18 16:07:26 -05:00
Loredana Crusoveanu 733402b709 Merge pull request #8737 from eugenp/lor6-patch-1
Update README.md
2020-02-17 21:21:47 +02:00
amdegregorio a681588bcc BAEL-3840 Suppressed Exceptions in Java 2020-02-17 06:36:35 -05:00
Jonathan Cook d523011fd0 Merge pull request #8592 from AlexFlorinHriscu/master
BAEL-3502 Arrays.deepEquals method examples.
2020-02-17 11:27:53 +01:00
Loredana Crusoveanu f69aee855f Update README.md 2020-02-16 21:35:44 +02:00
Loredana Crusoveanu f1e1ca8dcf Merge pull request #8717 from Maiklins/JAVA-112-merge-duplicate-read-file-articles
JAVA-112 merge duplicate read file articles
2020-02-16 21:32:41 +02:00
mikr 46d3228551 Java-112 Update unit tests for article merge 2020-02-16 18:32:53 +01:00
Florin Hriscu 70799d694f BAEL-3502 - Format core-java-modules pom.xml file. 2020-02-16 17:45:08 +02:00
Florin Hriscu 347a2b2b4f BAEL-3502 - Format pom.xml file. 2020-02-16 17:43:28 +02:00
Florin Hriscu dcccf21e0d BAEL-3502 Apply correct formatter. 2020-02-16 17:34:31 +02:00
Florin Hriscu af1fd4e1b0 BAEL-3502 Bind core-java-arrays-3 module to parent module. 2020-02-16 00:33:48 +02:00
Florin Hriscu 319fbc12c5 BAEL-3502 Add ArraysDeepEqualsUnitTest.java inside new core-java-arrays-3 module. 2020-02-16 00:33:19 +02:00
Florin Hriscu 9c505d2ac1 BAEL-3502 Remove ArraysDeepEqualsUnitTest file from core-java-arrays-2 module. 2020-02-16 00:29:50 +02:00
Philippe Soares 466d25bd05 Reverted change on README.md 2020-02-14 23:20:05 -05:00
psoares bc18fd907f Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-14 23:12:37 -05:00
psoares 80d241be46 Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-14 23:12:30 -05:00
psoares db20aeb12c Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-14 23:11:52 -05:00
psoares c6489551cf Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-14 23:11:41 -05:00
psoares 81d097732d Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-14 23:11:34 -05:00
psoares 37d822bc12 Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-14 23:11:28 -05:00
mikr fa07aedde7 Java-64 Remove stray code 2020-02-14 12:30:43 +01:00
mikr b155b71c4b Java-112 Merge duplicate Java read from file articles 2020-02-13 09:16:08 +01:00
mikr d7fd1e2493 Java-112 Merge duplicate Java read from file articles 2020-02-13 08:50:05 +01:00
rpvilao 31d0d6a7cd Merge pull request #8672 from sampada07/BAEL-3394
BAEL-3394 : Using headless mode in Java
2020-02-12 18:21:44 +01:00
Pazis bde0c37075 java.net.SocketException: Connection reset (#8707)
* initial commit

* fix
2020-02-11 12:10:59 -08:00
Loredana Crusoveanu ffb9e43a11 Merge pull request #8703 from eugenp/lor6-patch-7
Delete README.md
2020-02-10 23:14:37 +02:00
Loredana Crusoveanu fe9a040728 Merge pull request #8702 from eugenp/lor6-patch-6
Update README.md
2020-02-10 23:14:05 +02:00
Loredana Crusoveanu 7789468baf Merge pull request #8675 from eugenp/lor6-patch-3
Update SortComparisonUnitTest.java
2020-02-10 23:13:19 +02:00
Loredana Crusoveanu 29622aba6c Delete README.md 2020-02-10 23:11:03 +02:00
Loredana Crusoveanu 64c2ddbf30 Update README.md 2020-02-10 23:10:44 +02:00
johnA1331 0e36222099 Update README.md 2020-02-10 15:24:02 +08:00
johnA1331 9b7b426965 Update README.md 2020-02-10 15:20:46 +08:00
johnA1331 d55d7157cc Update README.md 2020-02-10 15:19:13 +08:00
johnA1331 92f3b3a96d Update README.md 2020-02-10 15:10:22 +08:00
johnA1331 fd3e69582d Update README.md 2020-02-10 15:08:56 +08:00
johnA1331 de9aa7c9ec Update README.md 2020-02-10 15:07:32 +08:00
johnA1331 ac95ae258f Update README.md 2020-02-10 14:56:01 +08:00
johnA1331 e577ed1e05 Update README.md 2020-02-10 14:43:34 +08:00
johnA1331 265a5100bd Update README.md 2020-02-10 14:35:29 +08:00
johnA1331 1fe0b4ccbc Update README.MD 2020-02-10 14:33:53 +08:00
johnA1331 b70afb3544 Update README.md 2020-02-10 14:21:28 +08:00
johnA1331 85977c9bfe Create README.md 2020-02-10 14:18:09 +08:00
johnA1331 deb3a7458b Update README.md 2020-02-10 14:00:57 +08:00
johnA1331 be6b5832e8 Update README.md 2020-02-10 13:27:50 +08:00
johnA1331 dce0283239 Update README.md 2020-02-10 13:11:52 +08:00
johnA1331 910bdc10d6 Update README.md 2020-02-10 13:10:29 +08:00
johnA1331 92a07a5b0b Update README.md 2020-02-10 13:09:23 +08:00
johnA1331 b9a0908199 Update README.md 2020-02-10 13:07:20 +08:00
fejera 17e8bbd128 corrected typo 2020-02-09 17:40:30 +01:00
Philippe Soares f80e6c396a [BAEL-3601] - Reformatted code with eclipse. Removed unused imports. 2020-02-09 10:17:06 -05:00
Philippe Soares 696e4943df [BAEL-3601] - Fix code review comments. 2020-02-09 00:49:26 -05:00
Philippe Soares e94f0ad2f1 Merge branch 'master' of https://github.com/psoares/tutorials 2020-02-08 23:47:22 -05:00
amit.pandey b368399b28 resolve conflicts 2020-02-09 02:34:45 +05:30
Loredana Crusoveanu 63d394d697 Merge pull request #8668 from johnA1331/master
BAEL-21624
2020-02-08 12:35:17 +02:00
Florin Hriscu 124cae5760 BAEL-3502 Change destination package for ArraysDeepEqualsUnitTest.java. 2020-02-08 00:20:48 +02:00
Greg 218d9c92f4 Merge pull request #8534 from carloscaverobarca/BAEL-3739-string-Contains-Case-Insensitive-Java
[BAEL 3739] -  Workarounds for String contains case insensitive in Java
2020-02-07 10:35:43 -05:00
Jonathan Cook 4e3191c488 Merge pull request #8609 from martinvw/feature/BAEL-2397-text-blocks
Feature/bael 2397 text blocks
2020-02-07 16:01:27 +01:00
Martin van Wingerden b0ba3cec5f [BAEL-2397] Text Blocks
Replaced by `p` by `span`
2020-02-07 14:06:26 +01:00
Loredana Crusoveanu 8650f39580 Update SortComparisonUnitTest.java 2020-02-06 23:43:50 +02:00
sampada d461fb4593 BAEL-3394 : Using headless mode in Java 2020-02-06 19:30:52 +05:30
Martin van Wingerden 1e2c72c2a5 [BAEL-2397] Text Blocks
Move the + signs to the beginning of the lines
2020-02-05 22:01:08 +01:00
amit.pandey 3af7fbf8a7 added newly added core-java-regex module in parent pom 2020-02-05 19:57:52 +05:30
amit.pandey fa6647a95e move regex module from existing module to core-java-regex module 2020-02-05 19:39:20 +05:30
johnA1331 debd66c2d0 Update README.md 2020-02-05 16:45:00 +08:00
johnA1331 df0ae7e241 Update README.md 2020-02-05 16:43:47 +08:00
johnA1331 0fbe596c06 Update README.md 2020-02-05 16:29:30 +08:00
johnA1331 ed8e78c59d Update README.md 2020-02-05 16:13:17 +08:00
johnA1331 81670cfebf Update README.md 2020-02-05 16:10:35 +08:00
Carlos Cavero cffbc130ec Modify "then" by "should" in the Unit Tests as suggested from code review
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-02-04 10:20:14 +01:00
Eric Martin fc4c5bab51 Merge pull request #8588 from sk1418/master
improvement of the article "How to Return Multiple Values From a Java…
2020-02-02 13:00:25 -06:00
Eric Martin 07a2624110 Merge pull request #8567 from johnA1331/master
Bi-monthly test fix - BAEL-20909
2020-01-31 20:24:34 -06:00
kwoyke cdac6f117a BAEL-3476: Add Java 9 example to Immutable ArrayList in Java (#8636) 2020-01-31 21:55:19 +01:00
Loredana Crusoveanu d0225e59ce Merge pull request #8642 from amit2103/BAEL-21550-3
Bael 21550 3
2020-01-30 22:03:52 +02:00
karl82 0b73db930f Update ThreadLocalRandom benchmark to show issues with contention (#8292)
Previous benchmark was measuring initialization of thread pools and
their shutdown, not really measuring performance of Random.nextInt()
shared Random instance vs ThreadLocalRandom.current()

Example when run with 8 threads

Benchmark                                                         Mode  Cnt     Score     Error   Units
ThreadLocalRandomBenchMarker.randomValuesUsingRandom             thrpt   20     9.597 ±   0.475  ops/us
ThreadLocalRandomBenchMarker.randomValuesUsingThreadLocalRandom  thrpt   20  2195.178 ± 109.579  ops/us
2020-01-30 11:10:20 -08:00
amit.pandey fb58191295 resolve merge conflicts 2020-01-30 02:39:31 +05:30
amit.pandey f3740fc344 extract pom version into properties 2020-01-30 02:16:26 +05:30
Martin van Wingerden 4c1b542fd9 [BAEL-2397] Corrected formatting 2020-01-29 21:40:28 +01:00
Kai Yuan 50066f0aef improvement of the article "How to Return Multiple Values From a Java Method" 2020-01-28 21:47:36 +01:00
Ali Dehghani e9daf73125 Fixing Yet Another Date & Time Problem 2020-01-27 23:34:21 +03:30
Cavero Barca 8ecc31f99e Add a refinement for clarity in the RegionMatches function 2020-01-27 14:09:58 +01:00
Cavero Barca 0e116c9dfb Add unit tests for Case Insensitive Contains workarounds 2020-01-27 13:02:25 +01:00
Cavero Barca 6ba82d38cc Rename the class to separate functionality from what the class is about 2020-01-27 13:01:50 +01:00
Martin van Wingerden 7d0a14d3d3 Add missing README.md
Added code/configuration for the article about Text Blocks
2020-01-27 09:28:27 +01:00
Martin van Wingerden d59bd5f066 [BAEL-2397] Text Blocks
Added code/configuration for the article about Text Blocks
2020-01-27 09:25:42 +01:00
Loredana Crusoveanu 268d7b5daa Merge pull request #8564 from Maiklins/BAEL-20598-Fix-unit-test-in-core-java-jndi-module
BAEL-20598 fix unit test in core java jndi module
2020-01-26 18:38:07 +02:00
Florin Hriscu bd581da50b BAEL-3502 Arrays.deepEquals examples. 2020-01-26 17:43:33 +02:00
Loredana Crusoveanu f381cb7f9e Merge pull request #8541 from kwoyke/BAEL-20927
BAEL-20927: Standardize packages for core-java-modules
2020-01-26 11:51:00 +02:00
Philippe Soares b7e3f148a7 Replaced println commands by proper logging 2020-01-25 17:39:29 -05:00
Pazis fc7fe5ac4c BAEL-3513 (#8489)
* BAEL3513

* fix
2020-01-24 11:24:35 -08:00
Greg 51eb5577e3 Merge pull request #8442 from Thabo08/work-stealing-3
t.ntsoko@gmail.com - Work stealing framework
2020-01-24 09:44:03 -05:00
Loredana Crusoveanu 9446488708 Merge pull request #8560 from kwoyke/BAEL-20599
BAEL-20599: Increase blocking operations' time
2020-01-24 15:21:59 +02:00
johnA1331 a81c52059b Update README.md 2020-01-23 15:42:45 +08:00
johnA1331 166ad6547f Update README.md 2020-01-23 15:41:01 +08:00
johnA1331 17b97ead8a Update README.md 2020-01-23 15:12:47 +08:00
johnA1331 11c73de2a9 Update README.md 2020-01-23 15:06:21 +08:00
johnA1331 8111d4e7c9 Update README.md 2020-01-23 15:05:04 +08:00
johnA1331 e6f988df12 Update README.md 2020-01-23 14:55:24 +08:00
johnA1331 667699b072 Create README.md 2020-01-23 14:53:08 +08:00
mikr 876cc21191 BAEL-20598 Merge master 2020-01-22 08:55:30 +01:00
mikr dd76d3d221 Merge branch 'master' of https://github.com/Maiklins/tutorials into BAEL-20598-Fix-unit-test-in-core-java-jndi-module
 Conflicts:
	core-java-modules/core-java-jndi/pom.xml
2020-01-22 08:52:27 +01:00
mikr b0c3152a9c BAEL-20598 Fix unit test in core-java-jndi module 2020-01-22 08:48:27 +01:00
johnA1331 a051d27363 Update README.md 2020-01-22 13:32:13 +08:00
Loredana Crusoveanu d4fbeb6b15 Merge pull request #8514 from dkapil/task/BAEL-20665
Task/bael 20665
2020-01-21 21:35:59 +02:00
Vijay Palaniappan S 226c49fa84 Added a new module & code for creating LocalDate (#8558) 2020-01-21 08:07:38 -08:00