Commit Graph

1241 Commits

Author SHA1 Message Date
Ali Dehghani 1ff99dfea7 Default Serial Version UID 2020-06-24 21:55:56 +04:30
bfontana 184ea1c260 Merge pull request #9556 from alimate/BAEL-4310
BAEL-4310: Array Length Example
2020-06-24 11:43:59 -03:00
Ali Dehghani 9f224670a6 Fixed a typo 2020-06-24 15:21:53 +04:30
Ali Dehghani 4df44e18c5 Move the Memory Layout Codebase to a new Module 2020-06-24 15:19:35 +04:30
Gergo Petrik ac6390da3b Bal 4152 covariant return type (#9561)
* BAEL-4152: added covariant return type material

* BAEL-4152: covariant return type article related code is moved to another package
2020-06-23 23:16:17 -07:00
Ali Dehghani d9f00b7004 The Stack-Walking API for Currently Executing Method 2020-06-24 02:14:24 +04:30
johnA1331 a0e9359cf7 Update README.md 2020-06-23 15:54:14 +08:00
Amy Regnier 0d66be29a7 Updates to resolve issues raised by Kevin Gilmore 2020-06-22 11:38:08 -05:00
Ali Dehghani 52c03a3a48 Array Length Example 2020-06-22 21:03:09 +04:30
davidmartinezbarua 1739280948 Merge pull request #9526 from alimate/BAEL-4116
BAEL-4116: Objects Memory Layout in Java
2020-06-22 13:08:16 -03:00
Loredana Crusoveanu 68316251df Merge branch 'master' into master 2020-06-22 10:58:31 +03:00
Loredana Crusoveanu e2987ffae9 Merge pull request #9537 from amit2103/JAVA-1746-2
Update repository links to use https
2020-06-21 20:05:18 +03:00
amit.pandey c282780328 Update repository links to use https 2020-06-21 00:50:55 +05:30
amit.pandey 0ae152079e extract version into properties tag & moved common properties in parent 2020-06-20 23:37:24 +05:30
amit.pandey 36f15adbd7 extract version into properties tag & moved common properties in parent 2020-06-20 23:32:32 +05:30
Mona Mohamadinia e036a1adeb Added Code Samples (#9498) 2020-06-20 17:35:51 +01:00
Ali Dehghani 56c231c662 Added the Code Samples 2020-06-20 13:50:49 +04:30
Ali Dehghani 4b90f42892 Objects Memory Layout in Java 2020-06-19 23:54:50 +04:30
Carlos Grappa 5ad558c800 BAEL-4154 IOException Too many open files (#9511)
* BAEL-4154 IOException Too many open files

* Add comment to explain GC dependency

Co-authored-by: Carlos Grappa <carlos.grappa@mercadolibre.com>
2020-06-18 20:04:32 -07:00
Eric Martin 2457413be1 Merge pull request #9376 from maryarm/BAEL-3287
BAEL-3287
2020-06-18 17:35:54 -05:00
Jonathan Cook 6135445a29 Merge pull request #9361 from JonCook/master
BAEL-3912 - Java: Get week number from any date?
2020-06-18 15:18:03 +02:00
johnA1331 f41f744adf Update README.md 2020-06-18 15:15:20 +08:00
johnA1331 e201c58f27 Update README.md 2020-06-18 15:06:30 +08:00
johnA1331 743ec9ed60 Update README.md 2020-06-18 15:00:22 +08:00
johnA1331 f4ddd8907e Update README.md 2020-06-18 14:59:59 +08:00
johnA1331 5a68ce5100 Update README.md 2020-06-18 14:59:17 +08:00
johnA1331 51eea910b4 Update README.md 2020-06-18 14:33:44 +08:00
johnA1331 23f36e5dd2 Update README.md 2020-06-18 13:43:43 +08:00
johnA1331 8cc41206dd Update README.md 2020-06-18 13:26:55 +08:00
johnA1331 8d9f67faec Update README.md 2020-06-18 13:24:36 +08:00
johnA1331 8524b12bc3 Update README.md 2020-06-18 12:40:30 +08:00
Amy Regnier 87cc504e9e fix method names 2020-06-17 09:10:52 -05:00
Eric Martin 1d5b0c7759 Merge pull request #9464 from alimate/BAEL-4146
BAEL-4146: How Much Space boolean and boolean[] consumes?
2020-06-15 20:59:24 -05:00
Ali Dehghani 56d186f031 Added the Boolean Object Size Samples 2020-06-15 20:50:30 +04:30
Carlos Grappa dc12579dde BAEL-4154 IOException Too many open files (#9501)
Co-authored-by: Carlos Grappa <carlos.grappa@mercadolibre.com>
2020-06-15 08:01:20 -07:00
Eric Martin 0710026838 Merge pull request #9468 from johnA1331/master
BAEL-24876 - github-related test fix (results: 03.06.2020)
2020-06-14 12:03:57 -05:00
Jonathan Cook 9c9064cdb3 BAEL-3912 - Java: Get week number from any date? 2020-06-14 10:44:59 +02:00
Jonathan Cook 754e7f3d49 Merge branch 'master' of https://github.com/eugenp/tutorials 2020-06-14 10:20:41 +02:00
Loredana Crusoveanu 3dff206800 Merge branch 'master' into BAEL-4158 2020-06-14 09:57:03 +03:00
johnA1331 5ba1cd0b0f Merge branch 'master' into master 2020-06-14 10:42:24 +08:00
maryarm 220faee2b0 BAEL-3287: Move implementations to test folder 2020-06-12 19:32:50 +04:30
Jonathan Cook 9b61ba29e6 Merge branch 'master' of https://github.com/eugenp/tutorials 2020-06-12 07:23:24 +02:00
Eric Martin 0d9e691fe4 Merge pull request #9428 from SmartyAnsh/BAEL-View_Bytecode_of_a_Class_File_in_Java
BAEL-4049 View bytecode of a class file in java
2020-06-11 21:15:24 -05:00
rpvilao d68d458763 Merge pull request #9451 from ricardomoreirab/master
[BAEL-4136] What is this: [Ljava.lang.Object;?
2020-06-11 11:37:40 +02:00
Anshul BANSAL 5d9b41411d bcel version updated 2020-06-11 07:34:34 +03:00
sampadawagde b90191c5bc JAVA-622: readme changes, moved all enum articles to
core-java-lang-oop-types
2020-06-10 19:17:01 +05:30
sampadawagde da319363e8 JAVA-622: Move from core-java-lang-syntax to core-java-lang-oop-types 2020-06-10 19:16:13 +05:30
sampadawagde 265bfbfe10 JAVA-622: Moved code from core-java-lang to core-java-lang-oop-types 2020-06-10 19:14:45 +05:30
Ricardo Caldas e2fb716010 change method names, move package 2020-06-10 08:03:34 -03:00
Loredana Crusoveanu 0f2212533a Merge pull request #9449 from Maiklins/JAVA-1749-update-UUID-article-and-code
Java-1749 update UUID article and code
2020-06-09 19:10:48 +03:00
Josh Cummings bf4e7f7c9e Merge pull request #9452 from Maiklins/JAVA-1522-split-core-java-modules-core-java
Java-1522 split core java modules core java
2020-06-09 07:17:05 -06:00
johnA1331 a284c1d928 Update README.md 2020-06-09 21:00:17 +08:00
johnA1331 fa82022c6d Update README.md 2020-06-09 19:25:11 +08:00
johnA1331 1740f82328 Update README.md 2020-06-09 18:43:51 +08:00
johnA1331 9ff6e10078 Update README.md 2020-06-09 18:36:46 +08:00
johnA1331 9a9c492353 Update README.md 2020-06-09 18:31:13 +08:00
johnA1331 bff1a57fb9 Update README.md 2020-06-09 17:53:12 +08:00
Josh Cummings 9184c56423 Merge pull request #9453 from amit2103/JAVA-1833
pom formatting - make artifact name same as module name
2020-06-08 22:42:01 -06:00
Josh Cummings 8e15c570dc Merge pull request #9244 from pegeroad/ABA_problem
ABA problem in concurrency
2020-06-08 13:38:31 -06:00
Loredana Crusoveanu 10c4ebad08 Merge pull request #9282 from albanoj2/BAEL-3951
BAEL 3951: Corrected a misspelling in the static variable name
2020-06-08 20:06:00 +03:00
Ricardo Caldas 78d3c27e1f Code indentation fix 2020-06-08 12:21:05 -03:00
Amy Regnier d63c0834da Initial commit of code to accompany article on copying data from InputStream to OutputStream 2020-06-08 09:50:40 -05:00
Ricardo Caldas 051ed8f035 Code indentation fix 2020-06-08 08:49:36 -03:00
mikr 7b8b9390c7 JAVA-1522 Fix integration test for encoding package (2) 2020-06-07 21:46:55 +02:00
mikr fdcf192cbe JAVA-1522 Fix integration test for encoding package 2020-06-07 18:17:43 +02:00
Eric Martin 024874d9c8 Merge pull request #9423 from alimate/BAEL-4147
BAEL-4147: Introducing Integer Cache
2020-06-07 11:16:44 -05:00
Eric Martin d0c9ad62ea Merge pull request #9427 from alimate/BAEL-4153
BAEL-4153: Polluting the Heap
2020-06-07 11:08:00 -05:00
Eric Martin 3cfd36bbb1 Merge pull request #9420 from alimate/BAEL-4160
BAEL-4160: Class.newInstance() is deprecated
2020-06-07 10:57:10 -05:00
amit.pandey 4fa2ffb229 pom formatting - make artifact name same as module name 2020-06-07 20:28:16 +05:30
mikr 5a753ba384 JAVA-1522 Split core-java-modules/core-java module 2020-06-07 16:52:25 +02:00
Ricardo Caldas 978a32d0a2 [BAEL-4136] What is this: [Ljava.lang.Object;?
Code article
2020-06-07 10:00:48 -03:00
mikr 46ebcba3a0 JAVA-1749 Move modules language interop and console 2020-06-07 13:22:16 +02:00
mikr 6f21d2eb74 JAVA-1749 Update UUID article and code 2020-06-07 12:13:32 +02:00
Eric Martin d5c8ebe760 Merge pull request #9405 from alimate/BAEL-4128
BAEL-4128: Adapting the VarHandle Code to Best Practices
2020-06-05 22:50:57 -05:00
Josh Cummings 01b5d087f6 Merge pull request #9391 from pegeroad/BAEL-3856-aba-related-improvements
using accessors for balance and stamp
2020-06-05 11:34:11 -06:00
Anshul BANSAL bc40ab12d7 BAEL-4049 - indentation 2020-06-03 12:46:28 +03:00
Anshul BANSAL b9105d7891 BAEL-4049 - indentation fix 2020-06-03 12:44:22 +03:00
Ali Dehghani 829140d488 Polluting the Heap 2020-06-03 14:10:58 +04:30
Anshul BANSAL a2b1be69fe BAEL-4049 - indentation fix 2020-06-03 12:40:32 +03:00
Anshul BANSAL 8623df615b BAEL-4049 - removed cglib 2020-06-03 12:36:24 +03:00
Greg b8b361c2e4 Merge pull request #9345 from musibs/BAEL-4064
BAEL 4064 Out of Memory Error
2020-06-02 15:41:09 -04:00
Ali Dehghani b07bcce7ef Introducing Integer Cache 2020-06-02 22:03:54 +04:30
Ali Dehghani be292ec3f2 Avoid Using newInstance on Class<?> 2020-06-02 21:32:45 +04:30
Ali Dehghani 756f70b29f Rename the Class 2020-06-02 21:09:48 +04:30
Ali Dehghani 5b7dde1ae8 Adapting the VarHandle Code to Best Practices 2020-06-02 21:09:43 +04:30
musibs 6c6dbd6e96 Removed the long running test case 2020-06-02 18:13:56 +05:30
musibs 4998662d45 Moved the testcase to core-java-jvm module 2020-06-02 17:58:52 +05:30
Anshul BANSAL 6d1ecdd735 BAEL-4049 - view bytecode of a class file in java 2020-06-02 10:07:54 +03:00
Mona Mohamadinia 0828e8c3cd Added the Binary Examples 2020-06-02 04:41:34 +04:30
Josh Cummings 4f44c5db6c Merge pull request #9410 from eugenp/bael-3067
Update README.md
2020-06-01 09:51:33 -06:00
Josh Cummings 1627873f88 Update README.md
Issue BAEL-3494
2020-06-01 09:41:50 -06:00
Josh Cummings ef13de2061 Update README.md
Issue BAEL-3067
2020-06-01 09:38:52 -06:00
Josh Cummings bc6c7238d7 Merge pull request #9356 from earth001/BAEL-3494b
Bael 3494b
2020-06-01 07:51:31 -06:00
Juan Moreno ec34dde27b FIX Package Name 2020-06-01 09:06:57 -03:00
maryarm a1f8f90bd8 BAEL-3287: rename the package to apply review note 2020-06-01 00:22:31 +04:30
Josh Cummings 14ece4c049 Merge pull request #9350 from vikasrajput6035/BAEL-3067
BAEL-3067: Article - Convert BufferedReader to JSONObject - Completed
2020-05-30 19:52:06 -06:00
Gergo Petrik 1a44c81de4 using accessors for balance and stamp 2020-05-29 16:04:02 +02:00
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
Gergo Petrik a6fc46e3f6 ABA problem in concurrency 2020-05-04 16:40:20 +02:00
dupirefr 04ac803704 [JAVA-621] Fixed core-java-lang-oop-inheritance module description 2020-05-03 19:42:17 +02:00
sergio41 dbb4a85c10 [BAEL-3944] Negative test cases 2020-05-03 16:44:14 +02:00
Josh Cummings df332afd65 Merge pull request #9021 from dupirefr/team/JAVA-621-split_core_java_lang_oop2_module
[JAVA-621] Split core-java-lang-oop modules
2020-05-02 19:26:54 -06:00
Aaron Juarez 9797d3a4fc Bael-3966: code fixes after editor review (#9203) 2020-05-01 21:35:29 +02:00
dupirefr ed27094b5b [JAVA-621] Got last compilation error 2020-05-01 20:56:43 +02:00
sergio41 5a73101deb [BAEL-3944] Identation 2020-04-30 19:09:11 +02:00
sergio41 23bc2db643 [BAEL-3944] Minor changes on examples and identations 2020-04-30 18:44:05 +02:00
Kamlesh Kumar 89da31cbce BAEL-3837: Java Deadlock and Livelock (#8943) 2020-04-30 07:18:30 -05:00
Josh Cummings 9ae7596d5e Merge pull request #9201 from Maiklins/JAVA-618
Java-618 Restore missing code snippets
2020-04-29 12:56:28 -06:00
mikr 95a29d7e0b Java-618 Fix build failure (2) 2020-04-29 10:24:20 +02:00
dupirefr da22d7a839 [JAVA-621] Fixed package and import 2020-04-29 10:14:43 +02:00
mikr 666ca1ac69 Java-618 Fix build failure 2020-04-29 10:13:58 +02:00
dupirefr f01f9f9d86 [JAVA-621] Used *UnitTest suffix instead of Test for compliance with Maven PMD (article need update) 2020-04-29 09:08:43 +02:00
mikr e7cd7da8b8 Java-618 Restore RootCauseFinder code (move classes to core-java-modules) 2020-04-28 23:37:45 +02:00
Marcos Lopez Gonzalez cdd14b23f7 AgeCalculator changes 2020-04-28 22:56:25 +02:00
Marcos Lopez Gonzalez c59d9dbf8f changed example for finder of root cause exception 2020-04-28 22:55:30 +02:00
Marcos Lopez Gonzalez c223b669be root cause finder 2020-04-28 22:15:39 +02:00
mikr 9e83dbbc85 JAVA-618 Restore code for Global Exception Handler 2020-04-28 22:12:00 +02:00
dupirefr aa7daf7901 [JAVA-621] Added missing code
* https://www.baeldung.com/java-type-erasure introduction code

* https://www.baeldung.com/java-interfaces Electronic interface and Computer class

* https://www.baeldung.com/java-abstract-class BoardGame and Checkers classes

* https://www.baeldung.com/java-hashcode different ways of implementing hashCode

* https://www.baeldung.com/java-inheritance-composition ComputerBuilder and StandardComputerBuilder classes

* https://www.baeldung.com/java-equals-hashcode-contracts Renamed method to match article

* https://www.baeldung.com/java-static Renamed class to match article

* https://www.baeldung.com/java-nested-classes Renamed class to match article
2020-04-28 19:32:19 +02:00
Mrudav Shukla f56bf16d11 BAEL-1921 - added example code and unit test for GlobalExceptionHandler (#4646)
* added example code and unit test for GlobalExceptionHandler

* Code for common exceptions
2020-04-28 10:35:11 +02:00
dupirefr 4f75f2d5b0 [JAVA-621] Ensuring each article has its own package
* Putting test classes directly under abstractclasses package (no need
for test subpackage, we're already in test sources)

* Removed unnecessary keyword package to just let superkeyword

* Renamed scope package to variableandmethodhiding

* Renamed package basicmethods into methods

* Putting test classes directly under methodoverloadingoverriding package (no need for test subpackage, we're already in test sources)

* Moved publicmodifier package under com.baeldung as it contains code from a separate article

* Moved privatemodifier under com.baeldung as it was under an unnecessary core package

* Renamed staticdemo package into staticmodifier (was more adequate with other modifiers articles)

* Putting test classes directly under defaultstaticinterfacemethods package (no need for test subpackage, we're already in test sources)

* Moved thiskeyword package to com.baeldung instead of under keywords package
2020-04-28 08:02:18 +02:00
dupirefr c02e57fe7e [JAVA-621] Fixes due to minor article changes
* Renamed KeywordUnitTest to Keyword as it's the chosen name for the
article now
2020-04-28 08:02:15 +02:00
dupirefr b117f4ccd6 [JAVA-621] Flattened modules hierarchy 2020-04-28 08:02:13 +02:00
dupirefr fc303de35f [JAVA-621] Obsolete modules deletion
* Delete core-java-lang-oop module (remaining code
was duplicate of core-java-lang-syntax where it really belonged)

* Moved code from https://www.baeldung.com/java-eclipse-equals-and-hashcode to core-java-lang where it belong

* Delete core-java-lang-oop-2 module

* Delete core-java-lang-oop-3 module

* Delete core-java-lang-oop-4 module
2020-04-28 08:02:09 +02:00
dupirefr f6d3dc711f [JAVA-621] core-java-lang-oop-others module
* Creation

* Moved code from www.baeldung.com/java-static-dynamic-binding

* Recreated code for https://www.baeldung.com/java-oop as none was
matching anymore

* Moved code from https://www.baeldung.com/java-pass-by-value-or-pass-by-reference

* Moved article references to the new README.md
2020-04-28 08:02:06 +02:00
dupirefr b1e507d44c [JAVA-621] core-java-lang-oop-methods module
* Creation

* Moved code from https://www.baeldung.com/java-equals-hashcode-contracts

* Moved code from www.baeldung.com/java-hashcode

* Moved code from https://www.baeldung.com/java-method-overload-override

* Moved code from www.baeldung.com/java-methods

* Moved article references to the new README.md
2020-04-28 08:02:03 +02:00
dupirefr 654de59bbf [JAVA-621] core-java-lang-oop-inheritance module
* Creation

* Moved code from https://www.baeldung.com/java-anonymous-classes

* Moved code from www.baeldung.com/java-polymorphism

* Moved code from www.baeldung.com/java-inheritance

* Moved code from www.baeldung.com/java-variable-method-hiding

* Moved code from https://www.baeldung.com/java-type-casting

* Moved code from https://www.baeldung.com/java-super

* Moved code from www.baeldung.com/java-interfaces

* Moved code from www.baeldung.com/java-abstract-class

* Moved code from www.baeldung.com/java-inner-interfaces

* Moved article references to the new README.md
2020-04-28 08:02:00 +02:00
dupirefr a6846bb1ca [JAVA-621] core-java-lang-oop-types module
* Creation

* Moved code from https://www.baeldung.com/java-marker-interfaces

* Moved code from https://www.baeldung.com/java-abstract-class

* Moved code from https://www.baeldung.com/java-this

* Moved code from https://www.baeldung.com/java-nested-classes

* Moved code from https://www.baeldung.com/java-inner-interfaces

* Moved code from https://www.baeldung.com/java-classes-objects

* Moved article references to the new README.md
2020-04-28 08:01:57 +02:00
dupirefr 1ddd56978b [JAVA-621] core-java-lang-oop-modifiers module
* Creation

* Moved code from https://www.baeldung.com/java-static

* Moved code from https://www.baeldung.com/java-final

* Moved code from https://www.baeldung.com/java-public-keyword

* Moved code from https://www.baeldung.com/java-access-modifiers

* Moved code from https://www.baeldung.com/java-private-keyword

* Moved code from https://www.baeldung.com/java-static-default-methods

* Moved code from https://www.baeldung.com/java-strictfp

* Moved article references to the new README.md
2020-04-28 08:01:55 +02:00
dupirefr f23c60568c [JAVA-621] core-java-lang-oop-generics module
* Creation

* Moved code from https://www.baeldung.com/raw-types-java

* Moved code from https://www.baeldung.com/java-generic-constructors

* Moved code from https://www.baeldung.com/java-type-erasure

* Moved article references to the new README.md
2020-04-28 08:01:52 +02:00
dupirefr c0169519ad [JAVA-621] core-java-lang-oop-patterns module
* Creation

* Moved code from https://www.baeldung.com/java-composition-aggregation-association

* Moved code from https://www.baeldung.com/java-inheritance-composition

* Moved code from https://www.baeldung.com/java-immutable-object

* Moved code from https://www.baeldung.com/java-deep-copy

* Moved article references to the new README.md
2020-04-28 08:01:49 +02:00
dupirefr 117cb9ce46 [JAVA-621] core-java-lang-oop-constructors module
* Creation

* Moved code from https://www.baeldung.com/java-constructors

* Moved code from https://www.baeldung.com/java-copy-constructor

* Moved code from https://www.baeldung.com/java-cannot-reference-x-before-supertype-constructor-error

* Moved article references to the new README.md
2020-04-28 08:01:46 +02:00
dupirefr e25ce92d5e [JAVA-621] Creating core-java-lang-oop-modules module 2020-04-28 08:01:44 +02:00
dupirefr 41a9f46cad [JAVA-616] Fixed link to article by using HTTPS 2020-04-28 07:50:03 +02:00
Loredana Crusoveanu 6ebce06882 Merge pull request #9197 from glmartin/master
Helpful NullPointerException package move
2020-04-28 08:40:54 +03:00
Kumar Chandrakant 57519b9dae Testing multithreading (#9193) 2020-04-28 06:18:00 +02:00
Josh Cummings 70781cfeb1 Merge pull request #9143 from amit2103/JAVA-1273-1
update pom version from RC to GA
2020-04-27 17:18:17 -06:00
Greg Martin 71fb667478 Moved the HelpfulNullPointerException code to the npe package.
Merge remote-tracking branch 'upstream/master'
2020-04-27 18:47:18 -04:00
Aaron Juarez ee898632d3 BAEL-3966: find object's class in Java (#9118) 2020-04-25 22:23:13 +02:00
sergio41 a73fb8483a [BAEL-3944] Package move 2020-04-25 14:19:28 +02:00
KevinGilmore d090c9b059 BAEL-2893 BAEL-3927 update README files (#9171)
* BAEL-3336 BAEL-3058 add links

* BAEL-3319: add link

* BAEL-3284: add link

* BAEL-3198: add link to article

* BAEL-3479: add link to article

* BAEL-3485: add article link

* SCALA-38: move to new package and add link back to article

* SCALA-38: add imports back into unit test

* BAEL-3908: add link back to article

* BAEL-2893 BAEL-3927 add link back to article
2020-04-24 22:28:04 -05:00
Roque Santos 35f1a3eba5 BAEL-3927 : Encode a String to UTF-8 in Java (#8954)
* BAEL-3927 : Encode a String to UTF-8 in Java

* Update core-java-modules/core-java-string-operations-2/src/test/java/com/baeldung/encode/StringEncodeUnitTest.java

Co-Authored-By: KevinGilmore <kpg102@gmail.com>

* BAEL-3927 : Applying suggested adjustments

* BAEL-3927 : Simplifying the code snippets

* BAEL-3927 : Coding styles adjustements

* BAEL-3927 : Test adjustements to fit changes in article

Co-authored-by: KevinGilmore <kpg102@gmail.com>
2020-04-24 09:10:44 -05:00
sergio41 953b8d4640 [BAEL-3944] Real like phone numbers 2020-04-24 13:07:05 +02:00
sergio41 5bb2977eb0 [BAEL-3944] Move to a separate test class and fix other issues 2020-04-24 13:03:41 +02:00
Eric Martin ed8bdf0cb5 Merge pull request #9158 from johnA1331/master
github-related test fix - BAEL-23872
2020-04-23 19:34:01 -05:00
Josh Cummings fdec685ad4 Merge pull request #9071 from dupirefr/team/JAVA-616-split_core_java_arrays
[JAVA-616] Split core-java-arrays* modules
2020-04-22 09:54:10 -06:00
johnA1331 e9450dacbb Update README.md 2020-04-21 14:11:41 +08:00
sergio41 3233f80c5b [BAEL-3944] Code Upload 2020-04-19 22:37:21 +02:00
Jonathan Cook 8da4206dc4 Merge pull request #8978 from markathomas/BAEL-3860
BAEL-3860 - spatialguru.net@gmail.com
2020-04-19 14:46:49 +02:00
amit.pandey 95578f92ea update pom version from RC to GA 2020-04-19 18:09:24 +05:30
Josh Cummings 8a4c2d112e Merge pull request #9105 from Maiklins/JAVA-617
Java-617
2020-04-18 23:09:49 -06:00
Josh Cummings 43c715d949 Merge pull request #9133 from amit2103/JAVA-1278-1
Java 1278 1
2020-04-18 22:58:12 -06:00
amit.pandey 0f851a1d84 update source code to sync with article 2020-04-18 20:57:13 +05:30
mikr 744d2b5733 JAVA-617 Rename core-java-datetime-java8 to core-java-8-datetime 2020-04-18 14:22:10 +02:00
dupirefr 40fb82606a [JAVA-616] Reworded operations modules descriptions 2020-04-17 21:05:33 +02:00
dupirefr 91922d6553 [JAVA-616] Cleaning code
* Removed core-java-arrays* modules

* Updated core-java-module/pom.xml
2020-04-17 21:01:18 +02:00
dupirefr 50530b81b4 [JAVA-616] core-java-arrays-operations-advanced
* Creation

* Moved code from https://www.baeldung.com/java-array-copy

* Moved code from https://www.baeldung.com/java-arrays-deepequals

* Moved code from https://www.baeldung.com/java-array-sum-average

* Moved code from https://www.baeldung.com/java-array-intersection
2020-04-17 21:01:16 +02:00
dupirefr e36771a763 [JAVA-616] core-java-arrays-operations-basic
* Creation

* Moved code from https://www.baeldung.com/java-initialize-array

* Moved code from https://www.baeldung.com/java-common-array-operations

* Moved code from
https://www.baeldung.com/java-add-element-to-array-vs-list

* Moved code from https://www.baeldung.com/java-array-contains-value

* Moved code from https://www.baeldung.com/java-array-remove-element

* Moved code from https://www.baeldung.com/java-array-remove-first-element

* Moved code from https://www.baeldung.com/java-array-add-element-at-the-end
2020-04-17 21:01:13 +02:00
dupirefr dcd863f5d6 [JAVA-616] core-java-arrays-convert
* Creation

* Moved code from https://www.baeldung.com/java-convert-float-to-byte-array

* Moved code from https://www.baeldung.com/java-stream-to-array
2020-04-17 21:01:10 +02:00
dupirefr 6af4961a79 [JAVA-616] core-java-arrays-multidimensional
* Creation

* Moved code from https://www.baeldung.com/java-jagged-arrays

* Moved code from https://www.baeldung.com/java-loop-diagonal-array
2020-04-17 21:01:08 +02:00
dupirefr 0593fce8a3 [JAVA-616] core-java-arrays-guides
* Creation

* Moved code from https://www.baeldung.com/java-arrays-guide

* Moved code from https://www.baeldung.com/java-util-arrays
2020-04-17 21:01:05 +02:00
dupirefr 29a2f0ece1 [JAVA-616] core-java-arrays-sorting
* Creation

* Moved code from https://www.baeldung.com/java-sorting-arrays

* Moved code from https://www.baeldung.com/java-check-sorted-array

* Moved code from https://www.baeldung.com/java-invert-array

* Moved code from https://www.baeldung.com/java-arrays-sort-vs-parallelsort
2020-04-17 21:01:03 +02:00
Josh Cummings 1082334c75 Merge pull request #9091 from sampada07/JAVA-620
JAVA-620: Split or move core-java-modules/core-java-io-conversions
2020-04-17 11:05:28 -06:00
Eric Martin 151cdf344f Merge pull request #9099 from alimate/BAEL-3954
Improving the What is Thread-Safety Article
2020-04-16 22:27:11 -05:00
Mona Mohamadinia 6ceff529ad Added a few code snippets (#9084) 2020-04-16 20:47:10 +01:00
vatsalgosar 2815700ebf BAEL-3919 (#9072)
BAEL-3919 code
2020-04-16 20:40:04 +01:00
Maciej Główka 1239da8e6d BAEL-3505: Added util class to check server connection (#9013)
* BAEL-3505: Added util class to check server connection

* fixed formatting

* removed unnecessary sout
2020-04-16 20:23:23 +01:00
mikr ddf9da34bf JAVA-617 Split or move core-java-datetime-java8 module 2020-04-15 22:29:52 +02:00
kwoyke 23099cff16 BAEL-3994: Add example of chaining methods returning Optionals (#9102)
* BAEL-3994: Add example of chaining methods returning Optionals

* BAEL-3994: Update
2020-04-15 21:19:02 +02:00
mthomas 0c4dd2c8f0 Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-3860 2020-04-14 06:44:48 -05:00
mthomas 4556829955 Rename classes 2020-04-14 06:44:36 -05:00
Kumar Chandrakant 405230e25b Testing multithreading (#9088) 2020-04-14 07:22:05 +02:00
Ali Dehghani 123485714d Renaming the Class to Reflect the Article Update 2020-04-14 01:28:10 +04:30
sampadawagde a6b0996346 BAEL-3909: Update README to include article in correct module 2020-04-13 22:34:36 +05:30
sampadawagde dc0f9adabd JAVA-620: Updated README 2020-04-13 15:19:27 +05:30
sampadawagde effbd4cb6e JAVA-620: parent pom changes to include new module 2020-04-13 15:10:47 +05:30
sampadawagde b2cf180785 JAVA-620: Moved articles to new module 2020-04-13 15:10:22 +05:30
sampadawagde 02a4eee18c JAVA-620: New module core-java-io-conversions-2 2020-04-13 15:09:40 +05:30
Loredana Crusoveanu 9d06b84d41 Merge pull request #9067 from johnA1331/master
BAEL-22989
2020-04-11 11:10:36 +03:00
Josh Cummings 29e2551723 Merge pull request #9059 from sampada07/JAVA-1188
JAVA-1188: Removed duplicate entry from README
2020-04-10 12:52:24 -06:00
johnA1331 a1b1870921 Update README.md 2020-04-10 16:46:53 +08:00
johnA1331 a70207b993 Update README.md 2020-04-10 16:42:37 +08:00
johnA1331 cb016c1027 Update README.md 2020-04-10 16:28:18 +08:00
johnA1331 45abeb493b Update README.md 2020-04-10 16:22:40 +08:00
johnA1331 88afc279cf Update README.md 2020-04-10 16:10:17 +08:00
johnA1331 acdcb5caca Update README.md 2020-04-10 16:07:16 +08:00
johnA1331 f88c53eb49 Update README.md 2020-04-10 15:57:27 +08:00
johnA1331 721f339d8c Update README.md 2020-04-10 15:50:44 +08:00
johnA1331 e1cf55dc82 Update README.md 2020-04-10 15:40:36 +08:00
johnA1331 52ca4fbcd9 Update README.md 2020-04-10 15:29:38 +08:00
Eric Martin 529de386d4 Merge pull request #9047 from johnA1331/master
BAEL-23219
2020-04-09 20:34:14 -05:00
sampadawagde bcf5d50baa JAVA-1188: Removed duplicate entry from README 2020-04-09 23:42:31 +05:30
Josh Cummings 26cb2f3be1 Merge pull request #9046 from sampada07/JAVA-1188
JAVA-1188: Move java-collections-map* modules into core-java-modules
2020-04-09 09:11:43 -06:00
Sam Millington f9ac384b85 Added BAEL-3604 code (#9020)
* Added BAEL-3604 code
2020-04-08 18:40:34 +01:00
johnA1331 0625de1974 Update README.md 2020-04-07 17:54:20 +08:00
johnA1331 34927fcc12 Update README.md 2020-04-07 17:44:36 +08:00
johnA1331 6ffe07efff Update README.md 2020-04-07 17:39:12 +08:00
sampadawagde 39abe6bfd1 JAVA-1188: README changes 2020-04-07 14:53:59 +05:30
sampadawagde cb7bd8d2f2 JAVA-1188: Moved modules to core-java-modules 2020-04-07 14:50:03 +05:30
johnA1331 83cf886628 Create README.md 2020-04-07 16:56:28 +08:00
johnA1331 fb594d2b27 Update README.md 2020-04-07 16:30:42 +08:00
Eric Martin 1b6f7ed95e Merge pull request #8989 from alimate/BAEL-3866
BAEL-3866: Volatile Memory Ordering Example
2020-04-06 22:03:34 -05:00
Greg 940c1e610d Merge pull request #8924 from eardeleanu15/BAEL-3853-Helpful-NPE
BAEL-3853: Helpful NPE in Java 14
2020-04-05 11:33:36 -04:00
kwoyke 8c5dfc6f17 BAEL-3978: Add code samples for Objects.equals() (#9033) 2020-04-05 07:52:47 +02:00
Fabricio Pautasso 1acadab18b BAEL-3918 - Adding BigDecimal numbers using the Stream API (#8900)
* BAEL-3918 - Adding BigDecimal numbers using the Stream API

* BAEL-3918 - Adding BigDecimal numbers using the Stream API

* BAEL-3918 - Adding BigDecimal numbers using the Stream API

* BAEL-3918 - Updating test methods names to be compliant with Baeldung standards

* Minor name change

Co-authored-by: ashleyfrieze <ashley@incredible.org.uk>
2020-04-04 15:55:13 +01:00
Josh Cummings 1cf22480b5 Merge pull request #8980 from sampada07/JAVA-623
JAVA-623: Moved 3 articles from core-java-security to security-2
2020-04-03 08:27:11 -06:00
Eric Martin 18eb5188ca Merge pull request #8992 from alimate/BAEL-3922
BAEL-3922: Introducing nullsFirst and nullsLast
2020-04-01 21:11:03 -05:00
Kumar Chandrakant b4610e110f Adding code for article tracked under BAEL-3573. (#8999)
Co-authored-by: CHANDRAKANT Kumar <kumar.chandrakant@soprabanking.com>
2020-04-01 20:53:38 +02:00
kwoyke b56b71cf5f BAEL-2682: Move java-immutable-set article to core-java-collections-set module (#9001) 2020-04-01 20:42:54 +02:00
Eric Martin e1730b4d5c Merge pull request #8959 from albanoj2/BAEL-3587
BAEL-3587: Added %n new line example.
2020-03-31 17:49:41 -05:00
mthomas 6534bddb6c Move code to core-java-modules/core-java-concurrency-advanced-3Add
Add missing 'Unit' in test name
2020-03-31 04:43:06 -05:00
kwoyke b2a07b9fdf BAEL-2681: Upgrade core-java-collections-set to Java 11 (#8998)
* BAEL-2681: Upgrade core-java-collections-set to Java 11

* BAEL-2681: Comment out core-java-collections-set from the pom.xml
2020-03-31 08:54:14 +02:00
kwoyke 16e6ddc2e3 BAEL-3060: Cleanup JMXTutorialMainlauncher (#8991) 2020-03-30 23:10:57 +02:00
Ali Dehghani 0628c8dd42 Introducing nullsFirst and nullsLast 2020-03-30 17:55:33 +04:30
Ali Dehghani 35bbf9c884 Borrowing one Example from JCIP 2020-03-30 01:29:02 +04:30
rpvilao f79cdee39a Merge pull request #8958 from antmordel/master
BAEL-3928 Comparing Long Values in Java
2020-03-28 23:12:06 +01:00
Antonio Moreno 2ba09756f7 BAEL-3928 Comparing Long values in Java 2020-03-28 11:53:42 +00:00
sampadawagde e2b6b4bc92 JAVA-623: Moved 3 articles to core-java-security-2 2020-03-28 16:48:43 +05:30
sampadawagde c18d09cd33 JAVA-623: Moved 3 articles from core-java-security to security-2 2020-03-28 16:48:04 +05:30
mthomas 46b732527b Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-3860 2020-03-28 04:59:27 -05:00
mthomas 23153cf01c BAEL-3860 - Add model class and test for AtomicStampedReference 2020-03-28 04:58:57 -05:00
Eric Martin c52aab9879 Merge pull request #8945 from johnA1331/master
BAEL-23068
2020-03-27 12:38:58 -05:00
Nacho Verdu 5249021b68 BAEL-3912: Changes done for comments
BAEL-3912: Changes done for comments

BAEL-3912: Changes done for comments

BAEL-3912: Changes done for comments

BAEL-3912: Changes done for comments

BAEL-3912: Changes done for comments

BAEL-3912: Changes done for comments
2020-03-26 21:57:31 +00:00
Greg 566c18ad7e Merge pull request #8935 from sergio41/master
[BAEL-3910] Code Upload
2020-03-26 14:32:22 -04:00
sampadawagde 532d2a32ee JAVA-626: Updated Next and Prev links in README 2020-03-25 12:10:44 +05:30
sampadawagde 50c9b1c75e JAVA-626: Updated Next and Prev links in README 2020-03-25 12:07:06 +05:30
Josh Cummings 3a358c5cb4 Merge pull request #8906 from sampada07/JAVA-626
JAVA-626: Split or move java-math module
2020-03-24 23:20:24 -06:00
Eric Martin 99c2e2ea2a Merge pull request #8897 from sk1418/master
[BAEL-3914] java regex: \\s vs \\s+
2020-03-24 20:36:35 -05:00
Justin Albano f239c41f5f BAEL-3587: Corrected mis-numbering in comments. 2020-03-24 19:57:56 -04:00
Justin Albano 7ad1542856 BAEL-3587: Added %n new line example. 2020-03-24 19:56:27 -04:00
Karsten Silz 1062b4fef6 BAEL-3911 (#8939)
* Initial version of the code.

* Addressed PR comment.
2020-03-23 19:17:16 +01:00
johnA1331 b7a00cb127 Update README.md 2020-03-23 18:55:39 +08:00
johnA1331 6f89368718 Update README.md 2020-03-23 18:46:45 +08:00
johnA1331 11f23a2f6b Update README.md 2020-03-23 18:45:49 +08:00
johnA1331 eac4d6a715 Update README.md 2020-03-23 18:44:34 +08:00
johnA1331 d90933973e Update README.md 2020-03-23 18:18:10 +08:00
johnA1331 9ead49e028 Update README.md 2020-03-23 18:07:01 +08:00
Eric Martin 185a3a12c2 Merge pull request #8842 from AlexFlorinHriscu/master
BAEL-3859 - A Guide to AtomicMarkedReference in Java
2020-03-22 20:20:11 -05:00
sampadawagde 8d83e7cf1b JAVA-626 : Updated README description 2020-03-22 22:54:40 +05:30
Kai Yuan abf0620269 [BAEL-3914] java regex: \\s vs \\s+ 2020-03-22 17:44:10 +01:00
sergio41 eeb864af71 [BAEL-3910] Code Upload 2020-03-22 14:26:52 +01:00
sampadawagde 1aba93f3aa JAVA-626 : added new module to parent module's pom 2020-03-22 16:57:48 +05:30
sampadawagde 96cfd0af12 JAVA-626 : Added new module, replacement for the retired java-math 2020-03-22 16:56:34 +05:30
sampadawagde 05e0753a9c JAVA-626: Added 3 articles 2020-03-22 16:55:04 +05:30
Loredana Crusoveanu 0ed7b7dbeb Merge pull request #8933 from amit2103/JAVA-1007-2
pom formatting
2020-03-22 10:16:56 +02:00
Sampada c9569ac3a0 BAEL-3909: Moved code to another module (#8931) 2020-03-21 19:39:36 -07:00
amit.pandey ee8d7adb8e formatted pom.xml file 2020-03-22 07:24:38 +05:30
Eduard Ardeleanu d3b35f9f0c BAEL-3853: Helpful NPE in Java 14 2020-03-20 17:28:47 +02:00
rpvilao b5fb4b4182 Merge pull request #8758 from mguarnaccia/BAEL-3855
BAEL-3855
2020-03-20 12:00:27 +01:00
Loredana Crusoveanu 992659b9f3 Merge pull request #8904 from johnA1331/master
BAEL-22474
2020-03-19 18:34:01 +02:00
Greg 1528acf120 Merge pull request #8843 from rojyates/BAEL-3603-Java-IO-versus-NIO
BAEL-3603 Add test examples for Java IO versus NIO article
2020-03-18 15:50:22 -04:00
Unknown 0692bac979 BAEL-3855 2020-03-18 10:18:58 +01:00
johnA1331 803c8ddc99 Update README.md 2020-03-18 14:27:33 +08:00
johnA1331 7494225aa8 Update README.md 2020-03-18 14:23:00 +08:00
johnA1331 0ea9f16448 Update README.md 2020-03-18 14:21:53 +08:00
johnA1331 f70e4a0563 Update README.md 2020-03-18 14:14:13 +08:00
johnA1331 53c9accfd6 Create README.md 2020-03-18 14:09:32 +08:00
johnA1331 36c745ceb5 Update README.md 2020-03-18 13:34:56 +08:00
johnA1331 b46622d258 Update README.md 2020-03-18 13:23:13 +08:00
johnA1331 a5ea8c9d12 Update README.md 2020-03-18 13:12:25 +08:00
johnA1331 e052b9e735 Update README.md 2020-03-18 12:57:21 +08:00
johnA1331 378c353c90 Create README.md 2020-03-18 12:55:20 +08:00
johnA1331 98c4810ae4 Update README.md 2020-03-18 12:26:04 +08:00
johnA1331 369cfe24ab Update README.md 2020-03-17 19:09:27 +08:00
Loredana Crusoveanu b2ac02ae4d Merge pull request #8884 from amit2103/JAVA-1007
pom formatting
2020-03-17 12:35:58 +02:00
Roger Yates 0f5889567e BAEL-3603 Update variable names 2020-03-17 06:35:29 +10:00
Roger Yates 38843e814b BAEL-3603 Update variable names 2020-03-17 06:32:39 +10:00
Nacho Verdu 2401a9af7d BAEL-3912: Changes done 2020-03-16 18:37:46 +00:00
Florin Hriscu 3aa7a8f8a2 BAEL-3859 Changes after review. 2020-03-16 01:42:29 +02:00
Roger Yates 5c83dddb91 BAEL-3603 Update method names and variable name for PR 2020-03-16 06:24:59 +10:00
rpvilao c6c643048f Merge pull request #8789 from carloscaverobarca/BAEL-3755-LTrim-And-RTrim-In-Java
[BAEL 3755] - LTrim and RTrim Alternatives in Java
2020-03-15 15:16:49 +01:00
amit.pandey 1f4a4e24ec pom formatting 2020-03-15 18:22:24 +05:30
Unknown dae03d6a87 BAEL-3855 2020-03-15 13:04:55 +01:00
Unknown 5065a7353d BAEL-3855 2020-03-15 12:50:43 +01:00
Cavero Barca 2f3fa76466 Convert Benchmark functions to public to avoid compilation errors 2020-03-15 08:59:15 +01:00
Cavero Barca 63d9335b09 Remove FQCN for StringUtils and let private functions when possible 2020-03-14 23:06:54 +01:00
eric-martin b0ad30b803 BAEL-3583: Added the core-java-security-2 module 2020-03-13 22:50:25 -05:00
Eric Martin 43dd461ca8 Merge branch 'master' into master 2020-03-13 22:25:15 -05:00
Florin Hriscu f7ae209537 BAEL-3859 Add type to employeeNode and fix order of parameters in assertEquals method calls. 2020-03-13 22:46:41 +02:00
Florin Hriscu 205ee99874 BAEL-3859 Remove unnecessary equals and hashcode overriden methods. 2020-03-13 21:25:17 +02:00
Unknown 0e3a4221fe BAEL-3855 2020-03-13 16:33:34 +01:00
Cavero Barca 5badedf7e3 Upgrade Guava version 2020-03-13 00:35:43 +01:00
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
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
Sam Millington 744e6e9f0d Merge branch 'master' into readme-description-edits 2019-12-15 09:54:49 +00:00
Sjmillington 192450a258 [BAEL-17476] - Final edits for Add README descriptions 2019-12-15 09:50:35 +00:00
Josh Cummings f4420e8e99 Merge pull request #8327 from nickmelis/master
Code samples for Java Switch Statement
2019-12-14 21:11:49 -07:00
Jonathan Cook b2d539220a BAEL-3224 - Checking if 2 Java Dates are in the same day
- update pom.xml to remove tabs.
2019-12-13 20:57:15 +00:00
Jonathan Cook a0738d9d4b BAEL-3224 - Checking if 2 Java Dates are in the same day 2019-12-13 20:38:44 +00:00
Krzysztof Woyke 572477ff03 BAEL-3442: Move java files from java-dates to core-java-datetime-java8 2019-12-13 14:38:57 +01:00
sampada 32bae4023b BAEL-3589 : Java random strings 2019-12-13 15:44:59 +05:30
johnA1331 6d647f57af Update README.md 2019-12-13 14:26:09 +08:00
sampada 6cf81c0e0a BAEL-3589 : Improvement: Java Generate Random String 2019-12-12 19:49:29 +05:30
Fabio Silva 2d6be72eab Josh Cummings suggestions: Package renamed and Benchmark using JMH 2019-12-12 09:52:43 -03:00
Vikas Rajput 8f1d5128c7 BAEL-3397: Difference between throw e and throw new Exception(e) (#8339)
* 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
2019-12-11 10:42:31 -08:00
Kert Pjatkin a3eabf82a8 BAEL-3302: Fix package name & get rid of 3-letter time zone 2019-12-11 06:29:17 +01:00
Nick 9b69056ced Changing test method names to conform to standard 2019-12-10 15:48:47 +00:00
Josh Cummings 913b795338 Merge pull request #8323 from catalin-burcea/BAEL-19059
[BAEL-19059] - Move new articles to java-dates-operations module
2019-12-09 21:48:38 -07:00
Greg 4665f80ea4 Merge pull request #8289 from mona-mohamadinia/BAEL-3520
BAEL-3520: Shutdown Hooks for JVM
2019-12-08 16:52:30 -05:00
Greg ac1e0dc667 Merge pull request #8281 from kamleshkr/BAEL-3525
BAEL-3525: System.exit() vs Runtime.getRuntime().halt()
2019-12-08 16:46:46 -05:00
Fabio Silva 9f78f62732 Ruy Vilão suggestions: no point in declaring the variables for the match result, let's put them directly in the assert (to be fixed in both tutorial and code). 2019-12-08 15:57:34 -03:00
Nick a805787669 Merge branch 'master' of github.com:eugenp/tutorials 2019-12-08 10:33:08 +00:00
Nick b5e5132133 Code samples for Java Switch Statement 2019-12-08 10:28:27 +00:00
wugangca d0a9b57694 BAEL-3418 Check If Two Strings Are Anagrams in Java (#8139)
* BAEL-3418 Check If Two Strings Are Anagrams in Java

* BAEL-3418 Update code based on code review feedback.

* BAEL-3418 Update comments and rename constant based on code review feedback.

* Move the repository to core-java-modules/core-java-string-algorithms-3/

* BAEL-3418 Only support alpha characters for the anagram

* BAEL-3418 use preprocess in a separate method

* BAEL-3418 Remove the temp variables
2019-12-07 20:35:19 +00:00
Mona Mohamadinia 22572ee072 Refactoring to a better package name 2019-12-07 22:32:13 +03:30