794 Commits

Author SHA1 Message Date
Jonathan Cook
4505e5c240 Merge branch 'master' of https://github.com/eugenp/tutorials 2020-05-29 09:52:21 +02:00
vatsalgosar
6cd7bfba80 BAEL-3987 (#9139)
* BAEL-3987 - Cast an int to an enum value

* refactoring

* code refactored

* BAEL-3987 - Updated code snippets

* bAEL-3987 - Fixed indentation
2020-05-28 17:37:23 +01:00
maryarm
1fd16afaca BAEL-3287
Code examples for "The Difference between RxJava API and the Java 9 Flow API"
2020-05-27 18:39:23 +04:30
Michael Angstadt
388f03ae9a Use ServiceLoader class to obtain service instance
In the "main-app" module, the `HelloInterface` service instance, `HelloModules`, was just being treated like an ordinary class that was exported from the "hello.modules" module. The code was not treating the class as a service class. This is not a good example of how services are used.

This commit makes use of the `ServiceLoader` class, which provides access to the `HelloInterface` instance as defined in the "hello.modules" module. This serves as a better example for how services are used.
2020-05-26 15:46:28 -04:00
Vikas Ramsingh Rajput
11d0ab1b49 BAEL-3067: Changed method name and added latest maven dependency of org.json 2020-05-26 12:59:40 +03:00
Jonathan Cook
74acf44f1b Merge branch 'master' of https://github.com/eugenp/tutorials 2020-05-25 23:08:52 +02:00
Jonathan Cook
aa6d896b11 BAEL-3912 - Java: Get week number from any date? 2020-05-25 23:08:23 +02:00
rpvilao
cbe5207db2 Merge pull request #9336 from alimate/BAEL-4054
BAEL-4054: Super Type Token
2020-05-25 17:27:36 +02:00
François Dupire
2bdba48843 [JAVA-1657] Junit and Maven Surefire Plugin upgrade in core-java-modules (#9301)
* [JAVA-1657] core-java-modules JUnit and Maven Surefire Plugin upgrade

* [JAVA-1657] Changed sub modules parents to core-java-modules and core-java-modules to parent-java

* [JAVA-1657] Upgraded JUnit Jupiter version

* [JAVA-1657] Get JUnit 4 dependency transitively
2020-05-25 19:45:48 +05:30
Juan Moreno
102a487aaa FIX PMD bugs, dependency missing, compilation incubator features, fix awaitility asserts 2020-05-25 02:09:21 -03:00
Juan Moreno
17d2a2f052 FEAT Added sample code for BAEL-3494 2020-05-25 01:43:34 -03:00
musibs
ce8d289cd9 Moved the testcase to core-java-lang-2 module 2020-05-25 09:45:10 +05:30
Vikas Ramsingh Rajput
05a4d4e188 BAEL-3067: Article - Convert BufferedReader to JSONObject - Completed 2020-05-24 10:33:17 +03:00
Josh Cummings
d5a03e4c03 Update README.md
Issue CS-144
2020-05-23 08:26:13 -06:00
musibs
020fcd9229 BAEL 4064 Out of Memory Error 2020-05-23 15:23:26 +05:30
Ali Dehghani
92c446ce4c Adding Super Type Token 2020-05-21 21:25:37 +04:30
dupirefr
a990d57407 [BAEL-3981] Fixes from Josh's review
* Upgraded Apache Commons to 3.10

* Replaced Nathalie by Natalie
2020-05-20 23:41:13 +02:00
dupirefr
24a88c11ac [BAEL-3981] Moved inner classes to upper level 2020-05-20 23:31:13 +02:00
dupirefr
dbdb32da46 [BAEL-3981] Code for article
* Equality operators

* Object#equals method

* Objects#equals static method

* Comparable interface

* Comparator interface

* Apache Commons features

* Guava features
2020-05-20 23:31:12 +02:00
Grzegorz Piwowarek
f1be6fa3ae Update ExchangerPipeLineManualTest.java (#9326) 2020-05-20 07:54:02 +02:00
Roland Weisleder
c119a51ff9 BAEL-4010 Add test for InputStream.readAllBytes() (#9265)
* BAEL-4010 Add test for InputStream.readAllBytes()

* BAEL-4010 Refactor: Move "InputStream to Bytes" to Java 9 specific module

The issue BAEL-4010 introduces a new example to the article "Java
InputStream to Byte Array and ByteBuffer". The example is about
  byte[] InputStream.readAllBytes()
which was added with Java 9.

To be consistent, all examples for this article were moved to a module
which is compiled with at least Java 9.
2020-05-19 22:24:05 +02:00
Somnath Musib
73762873f6 BAEL-4033 LinkedBlockingQueue vs ConcurrentLinkedQueue (#9281)
* BAEL-4033 Added unit test cases for LinkedBlockingQueue and ConcurrentLinkedQueue

* BAEL-4033 Updated unit test class names due to PMD rule violations

* Moved files to another module based on the editor review
2020-05-19 17:48:58 +01:00
Josh Cummings
dc6f778bfe Merge pull request #9262 from Maiklins/JAVA-618-split-core-java-exceptions
Java-618 split core java exceptions
2020-05-18 22:09:35 -06:00
Gergo Petrik
c9453fe33a adding account unit test 2020-05-18 16:33:03 +02:00
Gergo Petrik
12ef94be39 added revision number and cas failure count 2020-05-17 10:07:47 +02:00
Gergo Petrik
fd32bd2f4d Merge branch 'master' of https://github.com/eugenp/tutorials into ABA_problem 2020-05-17 08:21:35 +02:00
kwoyke
b707c20297 BAEL-4042: Add new test case using BufferedReader.lines method (#9288) 2020-05-15 22:26:41 +02:00
Dhrubajyoti Bhattacharjee
bccc9c836e BAEL-3858 Java Exchanger introduction (#9000) 2020-05-15 22:17:08 +02:00
Greg
821ed435f1 Merge pull request #9251 from markathomas/BAEL-3974
BAEL-3974 - spatialguru.net@gmail.com
2020-05-15 13:36:22 -04:00
Loredana Crusoveanu
b45a712f6a Merge pull request #9276 from johnA1331/master
BAEL-24104 - add links to github-baeldung articles
2020-05-15 15:15:19 +03:00
Jonathan Cook
fa6e7a73b3 Merge pull request #8894 from nachoverdu/BAEL-3912
BAEL-3912: Changes done
2020-05-14 15:28:21 +02:00
Justin Albano
542852f569 Merge branch 'master' into BAEL-3951 2020-05-14 09:05:51 -04:00
Justin Albano
48d1c94dc0 BAEL-3951: Corrected misspelling. 2020-05-13 06:06:58 -04:00
johnA1331
3a1fa055d2 Update README.md 2020-05-12 17:10:13 +08:00
johnA1331
32925d61c3 Update README.md 2020-05-12 17:06:47 +08:00
johnA1331
4cd668aa49 Update README.md 2020-05-12 15:15:53 +08:00
Justin Albano
9d2e94f529 BAEL-3951: Added JDK 14 record example and associated tests. (#9270) 2020-05-11 08:47:04 -07:00
Somnath Musib
5c90dbc963 BAEL-3852 - A Guide to Foreign Memory Access API in Java 14 (#9040)
* Code sample for Java Hexagonal architecture

* BAEL-3838 Capturing a Java Thread Dump

* BAEL-3852 Foreign memory api in Java

* BAEL-3852 - Review changes of A Guide to Foreign Memory Access API in Java 14

* BAEL-3852 - Additional review changes for A Guide to Foreign Memory Access API in Java 14

* Review changes for alignment and class removal

* Removed incorrectly added old files from the PR

* Indentation changes

Co-authored-by: Somnath Musib <somnath.musib@voltbank.com.au>
2020-05-10 15:14:53 +01:00
Justin Albano
69c50660de BAEL-3951: Added JDK 14 record example and associated tests. 2020-05-10 09:47:28 -04:00
Jonathan Cook
f7d9de0961 Merge pull request #9148 from sergio41/master
[BAEL-3944] Validate Phone Numbers with Java Regex
2020-05-10 08:17:59 +02:00
Eric Martin
58d893cf6e Merge pull request #9245 from johnA1331/master
github-related test fix (results: 03.05.2020) - BAEL-24010
2020-05-09 23:09:23 -05:00
Maiklins
57a3896763 Bael-3857 introduction to lock free data structures (#9238)
* BAEL-3857 Introduction to Lock-Free Data Structures

* BAEL-3857 Declare variables as final / volatile

* BAEL-3857 Declare node value as final

Co-authored-by: mikr <michael.krimgen@ximedes.com>
2020-05-09 14:00:25 +02:00
mikr
f1dde2936b JAVA-618 Move code for 3 articles from core-java-exceptions to core-java-exceptions-2 2020-05-08 23:12:36 +02:00
Gergo Petrik
68dc88528e added transaction recording 2020-05-07 11:45:40 +02:00
mthomas
355cce7cc7 BAEL-3974 - Put imports back in place 2020-05-06 02:56:12 -05:00
mthomas
0774d2f238 BAEL-3974 - Add unit test for streaming Base64 encoding 2020-05-05 22:38:52 -05:00
johnA1331
48525264a0 Update README.md 2020-05-05 16:57:15 +08:00
johnA1331
44c7cecd65 Update README.md 2020-05-05 16:53:27 +08:00
johnA1331
66832ae37e Update README.md 2020-05-05 16:51:28 +08:00
johnA1331
0167480f88 Update README.md 2020-05-05 09:21:38 +08:00