Commit Graph

232 Commits

Author SHA1 Message Date
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
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
catalin-burcea 8a5faaf0ef [BAEL-19059] - Move new articles to java-dates-operations module 2019-12-07 18:12:55 +02:00
Fabio Silva 61ef5289a5 Pre-compile the regex pattern into a Pattern object and reuse 2019-12-06 10:02:29 -03:00
catalin-burcea 153a3923f0 [BAEL-18783] - Fix formatting of POMs 2019-12-06 11:40:56 +02:00
Sampada 69f8d56f3e BAEL-3511 : Default parameters in Java (#8317)
* Added Assertj dependency

* Default parameter example POJO and test class
2019-12-05 23:13:38 -08:00
Eric Martin e99b9b04c2 Merge pull request #8264 from johnA1331/master
Monthly Test Fix - BAEL-19186
2019-12-03 22:07:26 -06:00
Mona Mohamadinia 8109db569b Added the sample codes 2019-12-01 23:17:25 +03:30
Kamlesh Kumar 35c0ef7f14 BAEL-3525: System.exit() vs Runtime.getRuntime().halt() 2019-12-01 13:25:55 +05:30
Josh Cummings c865567b71 Merge pull request #8160 from alessiostalla/BAEL-18410
#BAEL-18410 add code sample for reduce with complex objects
2019-11-28 11:21:37 -07:00
Josh Cummings 9e0ed0893a Merge pull request #8249 from catalin-burcea/BAEL-16531
[BAEL-16531] - Move all the existing articles on "optional" under jav…
2019-11-28 09:49:58 -07:00