Commit Graph

462 Commits

Author SHA1 Message Date
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
Dhawal Kapil f5c4dcbe01 Merge branch 'master' of https://github.com/eugenp/tutorials into task/BAEL-20665
# Conflicts:
#	core-java-modules/core-java-jndi/pom.xml
2020-01-21 20:02:01 +05:30
Maiklins 0caf728a2f http://jira.baeldung.com/browse/BAEL-3707 (#8535)
Missing Code - Guide To Java 8 Optional
2020-01-21 10:03:23 +01:00
Krzysztof Woyke 0dc6b27fa6 BAEL-20599: Increase blocking operations' time 2020-01-21 09:53:09 +01:00
Greg b7c1eea772 Merge pull request #8485 from vikasrajput6035/BAEL-3504
BAEL-3504: Article - what causes invocation-target-exception : done
2020-01-19 13:01:46 -05:00
Vikas Ramsingh Rajput 910ac808c8 BAEL-3504: Added blank lines before when and then in unit test 2020-01-19 11:56:33 +03:00
Vikas Ramsingh Rajput 3771a056b3 Merge branch 'BAEL-3504' of https://github.com/vikasrajput6035/tutorials into BAEL-3504 2020-01-19 11:53:14 +03:00
Vikas Rajput 9e2e9bd460 BAEL-3504: Update core-java-modules/core-java-reflection/src/test/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
2020-01-19 10:52:37 +03:00
Eric Martin 01bdad3566 Merge pull request #8506 from sampada07/BAEL-3602
BAEL-3602 : Java 13 New Features
2020-01-18 20:17:39 -06:00
sampada a77f352896 BAEL-3602 : swapped order of args in assertEquals call 2020-01-18 20:19:34 +05:30
Jonathan Cook 21024ebe87 Merge pull request #8502 from vikasrajput6035/BAEL-3655
BAEL-3655: Article Find vs Matches in Java Regex API - done
2020-01-18 09:43:00 +01:00
Vikas Ramsingh Rajput 14ff21b8cf BAEL-3655: Renamed the JUnit test file as the proper naming convention 2020-01-17 23:54:00 +03:00
Vikas Ramsingh Rajput 21faf6df88 Merge branch 'master' of https://github.com/vikasrajput6035/tutorials into BAEL-3504 2020-01-17 23:40:44 +03:00
Vikas Ramsingh Rajput 82cffb4b61 BAEL-3504: Added Unit test file and removed old class file 2020-01-17 23:38:53 +03:00
Krzysztof Woyke a0c66a81d8 BAEL-20927: Migrate pom.xml files to com.baeldung package 2020-01-16 13:48:48 +01:00
Krzysztof Woyke 61fcac84ff BAEL-20927: Migrate core-java-concurrency-collections to com.baeldung package 2020-01-16 13:45:16 +01:00
Krzysztof Woyke 2fd60259df BAEL-20927: Migrate core-java-collections-list-2 to com.baeldung package 2020-01-16 13:41:37 +01:00
Krzysztof Woyke 6386b55db3 BAEL-20927: Migrate core-java-collections-list to com.baeldung package 2020-01-16 13:35:13 +01:00
Krzysztof Woyke ef143fdae2 BAEL-20927: Migrate core-java-collections-array-list to com.baeldung package 2020-01-16 13:30:52 +01:00
Krzysztof Woyke b39fcd4b66 BAEL-20927: Migrate core-java to com.baeldung package 2020-01-16 13:26:09 +01:00
amit.pandey b2b41f2f12 move versions in properties 2020-01-16 01:53:26 +05:30
Cavero Barca 632f6d6c9e Undo the test fixing because is a wrong behavior in Windows 2020-01-15 00:37:13 +01:00
Cavero Barca aac0d3598f Update README file 2020-01-15 00:29:44 +01:00
Cavero Barca 69a029f4ed Add JMH dependency and shade the jar. Include examples to avoid contains() case insensitive behavior 2020-01-15 00:21:50 +01:00
Cavero Barca 54582f10f7 Fix one of the tests modifying "," by "." 2020-01-15 00:20:15 +01:00
sampada 64568471fc BAEL-3602 : Added test for formatted() 2020-01-13 12:04:35 +05:30
Philippe Soares 8c3099d712 Added comments on unit tests. 2020-01-12 17:31:59 -05:00
Philippe Soares 9e93614755 New version of the article 2020-01-12 17:26:59 -05:00
Dhawal Kapil 08e3c1c6b6 BAEL-20665 Submodules not building
- Further fixes
2020-01-12 23:40:28 +05:30
Dhawal Kapil 3cfc8d2163 Merge branch 'master' of https://github.com/eugenp/tutorials into task/BAEL-20665
# Conflicts:
#	core-groovy-2/src/test/groovy/com/baeldung/metaprogramming/MetaprogrammingUnitTest.groovy
#	core-java-modules/pom.xml
#	pom.xml
2020-01-12 20:55:19 +05:30
Dhawal Kapil 5fe00c432b BAEL-20655 Which sub-modules aren't being built?
- Added more parent levels pom
2020-01-12 20:28:45 +05:30
Eric Martin 0a369c4a16 Merge pull request #8456 from SmartyAnsh/BAEL-3596_Asynchronous_Method_Calls_in_Java
Bael 3596 asynchronous method calls in java
2020-01-10 20:13:04 -06:00
sampada 5d50eb7709 BAEL-3602 : Java 13 New Features 2020-01-10 17:43:48 +05:30
Dhawal Kapil e128eb619a BAEL-20655 Which sub-modules aren't being built?
- Added several missing modules in the main pom.xml
- Fixed the modules list for all the profiles
- Commented several test cases so that all modules can run and be included in the pom.xml
- Moved child modules from main pom to parent modules pom
2020-01-10 17:22:13 +05:30
François Dupire 9136e9a6fb dupirefr/dupire.francois+pro@gmail.com [BAEL-3488] Timer Class (#8468)
* [BAEL-3488] Added examples and tests

* [BAEL-3488] Moved code to core-java-date-operations-2 module

* [BAEL-3488] Added assertj library to maven dependencies
2020-01-09 16:06:52 -08:00
Vikas Ramsingh Rajput e8351525c8 BAEL-3655: Article Find vs Matches in Java Regex API - done 2020-01-09 23:22:47 +03:00
Vijay Palaniappan S 08a1af18fb Added Create Date class & Unit Tests for all the cases (#8499) 2020-01-09 09:58:12 -08:00
Anshul BANSAL 6dc3151c6b Merge branch 'BAEL-3596_Asynchronous_Method_Calls_in_Java' of https://github.com/SmartyAnsh/tutorials into BAEL-3596_Asynchronous_Method_Calls_in_Java 2020-01-09 11:38:49 +02:00
Anshul BANSAL eb36131a55 BAEL-3596 - extracted the version numbers into properties 2020-01-09 11:34:28 +02:00
Vikas Ramsingh Rajput 6f4ebbac9f Merge branch 'master' of https://github.com/vikasrajput6035/tutorials into BAEL-3504 2020-01-07 21:38:25 +03:00
Vikas Ramsingh Rajput bea5cdafe4 BAEL-3504: Article - what causes invocation-target-exception : done 2020-01-07 21:08:42 +03:00
kwoyke 73e7543a9d BAEL-3693: Rename test methods (#8482) 2020-01-06 21:36:38 +01:00
Thabo Ntsoko 1816d17cfc Adding constructor that takes in an AtomicInteger argument to count the total number of prime numbers 2020-01-06 18:43:41 +02:00
Anshul Bansal 64365791dd review changes 2020-01-06 10:49:41 +02:00
mnafshin ec9028d5f8 Powerset (#8475)
* PowerSet generation is Java and respective unit tests are added

* function name is adjusted to the actual ordering name (Reverse Lexicographical ordering)

* Guava example test function is changed

* LazyLoad powerSet (based on Guava implementation) is added

* set is used instead of map.keySet()

* Lexicographic Order and Gray Order are removed from function names. Unused function (rank and unrank), which are not used in the text, are removed
2020-01-05 13:31:27 -08:00
Anshul BANSAL 0021e7849a organized imports 2020-01-04 14:59:27 +02:00
Anshul BANSAL df1f565779 4 spaces code indentation 2020-01-04 14:57:29 +02:00
Anshul BANSAL d85d65a581 pom.xml code indentation 2020-01-04 14:49:57 +02:00
Anshul Bansal 63dbe2dce0 pom.xml code indentation 2020-01-04 14:42:04 +02:00
Anshul BANSAL d790355eda Code indentation 2020-01-04 14:41:27 +02:00
Anshul Bansal 683cb35880 code indentation 2020-01-04 14:38:39 +02:00
Anshul BANSAL 9a2b5b9ca3 BAEL-3596 - code moved to core-java-concurrency-advanced-3 2020-01-04 14:37:34 +02:00
Krzysztof Woyke da78ae7cbe Merge remote-tracking branch 'upstream/master' into BAEL-20573 2020-01-03 09:21:03 +01:00
kwoyke d5681eb57c BAEL-3732: Move core-java-security-manager into core-java-security (#8460)
* BAEL-3732: Move core-java-security-manager into core-java-security

* BAEL-3732: Teardown the security manager to not interfere with other tests
2020-01-03 08:59:33 +02:00
Krzysztof Woyke 471915fb3c Merge branch 'master' into BAEL-20573 2020-01-03 07:57:17 +01:00
kwoyke c4497b7d3b BAEL-3608: Add Map.merge() usage example (#8455) 2020-01-03 08:51:16 +02:00
Philippe Soares af27178965 File locking example 2020-01-03 00:43:57 -05:00
Krzysiek 60dc0ca42b BAEL-20573: Update README.md files 2020-01-02 22:49:25 +01:00
Krzysiek eba38ea1d8 BAEL-20573: Rename core-java-date-operations to core-java-date-operations-2 2020-01-02 22:45:18 +01:00
Krzysiek 4733eddcbb BAEL-20573: Rename core-java-datetime-computations to core-java-date-operations-1 2020-01-02 22:38:40 +01:00
Donato Rimenti 746a609d3f [BAEL-3524] A Guide to @Serial Annotation in Java 14 (#8433)
* BAEL-1935: Synthetic Class in Java

* Converted tabs to spaces

* [BAEL-3524] Created project core-java-14 with @Serial demo.
2020-01-01 10:38:39 -06:00
M-Abdelbaset e0f885a467 Bael 3510-method multiple return values (#8348)
* init

* first draft

* first review round changes

* second review round

* changing arg name
2020-01-01 13:19:04 +02:00
rahulgul8 888539b06d Changes for "Guide to finally in Java" (BAEL-3526) (#8237)
* Adding files for finally keyword

* Adding returnFromCatch example.

* Adding empty braces instead of dangling ;

* Return from try, removing the catch block.

* moving to to core-java module

* moving to core-java-lang-2
2020-01-01 13:11:12 +02:00
rohitchaudhary2023 ce26810b4a BAEL-3380 (#8454)
* initial commit

* changes for articlesBAEL-3380

* Removed evaluation article files

* BAEL-3380

* adding test case BAEL-3380

* BAEL-3380

* BAEL-3380 - updated tests and removed main class

* BAEL-3380 - Updated Test class name

* BAEL-3380 - Updated Test class name

* BAEL-3380 - Updated testcase names as per BDD naming convention

* BAEL 3380 - Added JMH benchmark
2019-12-31 13:22:53 -08:00
mnafshin 70aa0ba234 PowerSet generation is Java and respective unit tests are added (BAEL-3417) (#8284)
* PowerSet generation is Java and respective unit tests are added

* function name is adjusted to the actual ordering name (Reverse Lexicographical ordering)

* Guava example test function is changed

* LazyLoad powerSet (based on Guava implementation) is added

* set is used instead of map.keySet()
2019-12-30 09:39:05 -08:00
Erik Pragt 9b35c6194f Merge pull request #8399 from AlNiyas/samedayimprovement
[BAEL-3632] Using Instant to check for same day
2019-12-30 00:45:13 +11:00
Loredana Crusoveanu 1c3f2d68dd Merge pull request #8434 from kwoyke/BAEL-3674
BAEL-3674: Remove the broken test
2019-12-29 12:23:20 +02:00
Krzysiek df1944164b BAEL-3674: Remove two more unit tests 2019-12-28 23:13:39 +01:00
Thabo Ntsoko eb1683c933 Indenting with 2 spaces 2019-12-28 21:58:53 +02:00
Graham Cox 17dc359d5b Examples for Branch Prediction article (#8426) 2019-12-28 20:20:11 +01:00
Thabo Ntsoko f87723e7ad Work stealing framework 2019-12-27 16:47:45 +02:00
Krzysiek 1973c49acb BAEL-3674: Remove the broken test 2019-12-26 22:36:10 +01:00
Loredana Crusoveanu 07777e159d Merge pull request #8417 from Thabo08/catching-throwable-2
t.ntsoko@gmail.com - Moving CatchingThrowable.java to the core-java-exceptions-2 module
2019-12-25 10:34:47 +02:00
sumit-bhawsar 6fd77ddd65 Bael 3512-difference between logical and bitwise & (#8203)
* BAEL-3512 unit tests for Bitwise and Logical AND operators

* BAEL-3512 readme.md is updated and added new tests for bitwise & with booleans

* BAEL-3512 updated variables names to more meaningful names

* BAEL-3512 added example for short circuit
2019-12-24 17:03:31 +00:00
Loredana Crusoveanu 17cfb8bce5 Merge pull request #8425 from silvafabio/master
Loredana Crusoveanu suggestions: shorten the names of the test method…
2019-12-23 21:53:43 +02:00
Fabio Silva 8a5941ceb0 Loredana Crusoveanu suggestions: shorten the names of the test methods, as they're causing a horizontal scroll bar to appear. 2019-12-23 09:15:37 -03:00
rdevarakonda 7c8a7412d2 [BAEL-3152] - Examples for the article 'Using the Not Operator in If (#8368)
Conditions in Java'
2019-12-23 02:51:19 +02:00
Greg 8469804de9 Merge pull request #8358 from sampada07/master
BAEL-3589 : Improvement: Java Generate Random String
2019-12-22 15:53:59 -05:00
Jonathan Cook e7ac8317e5 Merge pull request #8290 from kertpjatkin/master
BAEL-3302: Fix package name & get rid of 3-letter time zone
2019-12-22 21:10:42 +01:00
Thabo Ntsoko f8d612969c Moving CatchingThrowable.java to the core-java-exceptions-2 module 2019-12-22 17:08:39 +02:00
Loredana Crusoveanu 8914469671 Merge pull request #8403 from johnA1331/master
BAEL-19551
2019-12-20 23:05:44 +02:00
rpvilao 02f52d9b98 Merge pull request #8321 from silvafabio/master
Pre-compile the regex pattern into a Pattern object and reuse
2019-12-20 15:28:11 +01:00
rohitchaudhary2023 3e9ff755e0 BAEL-3380 (#8335)
* initial commit

* changes for articlesBAEL-3380

* Removed evaluation article files

* BAEL-3380

* adding test case BAEL-3380

* BAEL-3380

* BAEL-3380 - updated tests and removed main class

* BAEL-3380 - Updated Test class name

* BAEL-3380 - Updated Test class name

* BAEL-3380 - Updated testcase names as per BDD naming convention
2019-12-19 08:36:50 -08:00
johnA1331 2fe0006c74 Update README.md 2019-12-19 18:50:32 +08:00
johnA1331 d1e18e76bb Update README.md 2019-12-19 18:44:35 +08:00
Fabio Silva 9c512c4a82 Josh Cummings suggestions: JMH documentation states that benchmark methods should return a value in order to defend against Dead Code Elimination 2019-12-19 07:28:51 -03:00
johnA1331 21d8e18ce9 Update README.md 2019-12-19 18:21:25 +08:00
johnA1331 d820c79b50 Update README.md 2019-12-19 18:20:46 +08:00
Al Niyas babe8e87de BAEL-3632 Using Instant to check if Two Java Dates are On Same Day 2019-12-18 22:12:16 +03:00
Loredana Crusoveanu 253798a023 Merge pull request #8377 from kwoyke/BAEL-3442
BAEL-3442: Clean up java-dates module
2019-12-17 22:34:55 +02:00
Eugen d1f5bddedc Merge pull request #8379 from sjmillington/readme-description-edits
[BAEL-17476] - Final edits for Add README descriptions
2019-12-16 21:09:12 +02:00
sampada e68dd13723 BAEL-3589 : removed unnecessary final modifiers 2019-12-16 22:50:51 +05:30
Vikas Rajput c082640187 BAEL-3397: Added next link in core-java-exceptins module (#8380)
* Article: Quick and practical example of hexagonal architecture in java with Spring Project

* Removed server.port property from application.properties

* BAEL-3397: Difference between throw e and throw new Exception(e) in java

* BAEL-3397 : Removed links from readme file

* BAEL-3397: removed hexagonal module from the code

* BAEL-3397: renamed exceptions package name to rethrow

* BAEL-3397: Added next link in core-java-exceptions module and linked core-java-exceptions-2 module
2019-12-15 12:24:17 -08:00
Loredana Crusoveanu d170631d7f Merge pull request #8383 from kwoyke/BAEL-3651
BAEL-3651: Fix failing test in core-java-io-apis
2019-12-15 22:17:15 +02:00
Maiklins 0c3f780c4f BAEL-3130 overflow and underflow in java (#8381)
* BAEL-3131 Guide to Java HashMap
http://jira.baeldung.com/browse/BAEL-3130

* Move test class to correct package
http://jira.baeldung.com/browse/BAEL-3130
2019-12-15 21:07:08 +01:00
Krzysiek 0c61a12d88 BAEL-3651: Make sure the directory is always initially empty 2019-12-15 20:09:01 +01:00
Krzysiek fccdc24ad5 Revert "BAEL-3651: [Do Not Merge] Add diagnostic logging"
This reverts commit 1f18b3a051.
2019-12-15 20:00:00 +01:00
Krzysiek 1f18b3a051 BAEL-3651: [Do Not Merge] Add diagnostic logging 2019-12-15 19:29:08 +01:00
Jonathan Cook f7aab6fc11 Merge pull request #8367 from JonCook/master
BAEL-3224 - Checking if 2 Java Dates are in the same day
2019-12-15 16:06:03 +01:00
Krzysiek a68b14bf83 Merge branch 'master' into BAEL-3442 2019-12-15 12:15:54 +01:00