Commit Graph

1512 Commits

Author SHA1 Message Date
johnA1331 d0cb67f305 Update README.md 2020-11-18 17:14:44 +08:00
johnA1331 dfc2aa22dc Update README.md 2020-11-18 16:53:18 +08:00
unknown 7bb2282d24 BAEL-4301
- Created a new module core-java-char in core-java-modules modules
- Added Unit Tests for Character#isAlphabetic and Character#isLetter methods
2020-11-17 16:32:30 +05:30
Daniel Strmecki 79fc666e07 BAEL-4717: Refactor examples 2020-11-17 11:00:56 +01:00
sharifi c57644617d improve import package names 2020-11-17 09:30:20 +03:30
sharifi bba378a141 correct the package name 2020-11-17 09:14:33 +03:30
Michael Pratt 4164ff6a03 Updates from PR comments 2020-11-16 21:48:14 -07:00
developerDiv 43fad6ba95 Bael 4215 creating generic array (#10178)
* Initial commit for generic arrays, using T[] and Object[]

* Add CollectionsList

* Create generic arrays example with a Stack

* Remove custom exception classes + throw RuntimeException instead.
2020-11-16 18:08:49 +00:00
vatsalgosar c6f8c56572 IsLetter / isAlphabetic method unit tests (#10097) 2020-11-16 18:03:49 +00:00
Kai Yuan 600896e842 [BAEL-4617] extending enums (#10130) 2020-11-16 18:03:15 +00:00
Daniel Strmecki cc1a2e9b15 BAEL-4717: Added HashMap and LinkedList examples 2020-11-16 16:02:18 +01:00
Daniel Strmecki 796aefa996 BAEL-4717: Added ArrayList examples 2020-11-15 11:47:08 +01:00
Michael Pratt b610c4d304 BAEL-4663: Rename packages 2020-11-14 12:03:06 -07:00
sharifi b0d7dd8359 edit logger code
improve code quality
2020-11-12 14:08:44 +03:30
sharifi 1b22786001 add clean up files
improve code quality
2020-11-12 14:08:02 +03:30
sharifi d0678c77ab add equals method 2020-11-12 14:06:53 +03:30
Michael Pratt 2715bde82a BAEL-4663: Whats new in Java 15 2020-11-11 14:51:36 -07:00
johnA1331 8cb775a82b Update README.md 2020-11-11 21:30:48 +08:00
johnA1331 5534daf2d7 Update README.md 2020-11-11 21:24:47 +08:00
johnA1331 8ed8319d0b Update README.md 2020-11-11 21:24:16 +08:00
johnA1331 398eb841ae Update README.md 2020-11-11 21:22:12 +08:00
johnA1331 c49c7f57a3 Update README.md 2020-11-11 21:18:12 +08:00
johnA1331 f651b0f7b1 Update README.md 2020-11-11 20:13:52 +08:00
johnA1331 b6ef67eec7 Update README.md 2020-11-11 20:11:57 +08:00
Bradley M Handy 95e04696e6 BAEL-4209: Difference between e.getMessage() and e.getLocalizedMessage() (#10222)
* - initial commit of sample code

* BAEL-4209:  Moving the localized exception module into core-java-exceptions-3.

* BAEL-4209: Removed the old files for localizing exception messages.
2020-11-09 17:37:47 +00:00
Cristian Stancalau 5f9cf2c661 Fix typo 2020-11-09 19:29:12 +02:00
Cristian Stancalau ef3f984d8e Rename Reptile to Amphibian 2020-11-09 19:20:38 +02:00
Cristian Stancalau 141f05d179 Rename Reptile to Amphibian 2020-11-09 19:16:59 +02:00
Greg 3888cd0af1 Merge pull request #10210 from vishal1023/BAEL-4236
Bael 4236
2020-11-08 13:41:04 -05:00
sharifi 937f0fb784 Revert "update README file"
This reverts commit 6f785fde
2020-11-08 17:18:20 +03:30
Daniel Strmecki 7077a5f80c BAEL-4717: Create new collections module 2020-11-08 11:15:42 +01:00
Vishal fe8f0c91a1 BAEL-4236 | move all classes to package com.baeldung.exception.indexoutofbounds 2020-11-07 12:21:21 +05:30
Vishal 8ab6e4ad44 BAEL-4236 | delete duplicate class IndexOutOfBoundsException.java 2020-11-07 12:19:25 +05:30
Vishal 66860c1b03 BAEL-4236 | delete duplicate classes 2020-11-07 12:01:26 +05:30
Loredana Crusoveanu 65d2996c10 Merge pull request #10235 from johnA1331/master
BAEL-29324 - add links to github-baeldung articles
2020-11-06 12:41:55 +02:00
Amitabh.Tiwari 1a0d8f4be0 Added changes to remove unwanted spaces 2020-11-06 16:02:36 +05:30
Jonathan Cook 596189a553 Merge pull request #10166 from Saber-k/master
BAEL-4212 (String) or .toString()?
2020-11-05 15:35:33 +01:00
johnA1331 ff17ea49cf Update README.md 2020-11-05 14:12:52 +08:00
Amitabh Tiwari e13f7952b1 BAEL-4399: Changes for removing tab spaces 2020-11-04 19:34:50 +05:30
sharifi 6f785fdef5 update README file 2020-11-04 14:28:21 +03:30
sharifi 01baf5c752 add aes main source 2020-11-04 14:28:17 +03:30
sharifi cb48f0bd64 update assertj version 2020-11-04 14:28:12 +03:30
sharifi d584f37af0 add test file 2020-11-04 14:28:06 +03:30
Tarun Jain 1fba6f0127 BAEL-4645|Transient keyword in Java 2020-11-04 14:09:33 +05:30
Daniel Strmecki 5116a45d1e Feature/bael 4662 sealed classes (#10224)
* BAEL-4662: Initial commit of new module

* BAEL-4662: Example with Records

* BAEL-4662: Example with Interface

* BAEL-4662: Add test classes

* BAEL-4662: Update examples and tests

* BAEL-4662: Rename test classes
2020-11-03 11:37:30 -08:00
Amitabh Tiwari 3bea743e5b BAEL-4399: Removed unwanted space 2020-11-03 19:25:25 +05:30
Amitabh Tiwari be3614c157 Corrected the file names 2020-11-03 19:13:59 +05:30
Amitabh Tiwari 819669c97c BAEL-4399: Added changes as per review comment 2020-11-03 14:07:23 +05:30
Eric Martin 1578788805 Merge pull request #10192 from sk1418/abstractMethodError
[BAEL-4284] AbstractMethodError
2020-11-02 21:24:43 -06:00
mikr 4cac5aa1d8 JAVA-2824 Fix tests in Java 9 and above modules (Update after PR review) 2020-10-29 22:01:15 +01:00
mateusz.szablak 46c257f00f review #2 2020-10-29 16:44:28 +01:00
Loredana Crusoveanu 74079b9134 Merge pull request #10214 from johnA1331/master
BAEL-28915 - github-related test fix (results: 18.10.2020)
2020-10-29 15:23:58 +02:00
Kumar Chandrakant 0794a1ad1b Adding source code for article tracked under BAEL-4576 (#10203)
Co-authored-by: CHANDRAKANT Kumar <kumar.chandrakant@soprabanking.com>
2020-10-29 06:11:46 +01:00
johnA1331 ed3fe0cfce Update README.md 2020-10-28 17:21:03 +08:00
johnA1331 a96868a314 Update README.md 2020-10-28 17:07:37 +08:00
johnA1331 83489df711 Update README.md 2020-10-28 16:57:05 +08:00
johnA1331 4f1d748669 Update README.md 2020-10-28 16:39:46 +08:00
johnA1331 65d3dab26f Update README.md 2020-10-28 16:36:53 +08:00
johnA1331 f82d9e0fe5 Update README.md 2020-10-28 16:32:06 +08:00
johnA1331 54753f3f09 Update README.md 2020-10-28 15:46:34 +08:00
nguyennamthai 4b1a853871 BAEL-4477 Add a class to demonstrate that the app will crash if too many objects have a finalizer (#10200) 2020-10-28 07:12:52 +01:00
johnA1331 8d277a8d04 Update README.md 2020-10-28 10:39:29 +08:00
johnA1331 577e0ef044 Update README.md 2020-10-28 10:32:02 +08:00
Vishal a1c8d9317e BAEL-4236 | fix the failing build 2020-10-27 17:36:56 +05:30
Vishal 943fa43822 BAEL-4236 | Add code examples to handle IndexOutOfBoundsException and alternatives to make a copy of the l.ist 2020-10-27 13:10:58 +05:30
Eric Martin 023d307f51 Merge pull request #10171 from sk1418/clsNamesInJar
[BAEL-4533] get class names from a jar
2020-10-26 22:25:44 -05:00
mateusz.szablak dd98392dbe added after review 2020-10-26 16:35:41 +01:00
davidmartinezbarua e459c3faa0 Merge pull request #9996 from sahilsingla112/feature/BAEL-4558-stopexecution
BAEL-4558: Article for stopping execution after a certain time
2020-10-24 11:20:19 -03:00
Amitabh Tiwari dcc5d77c1b BAEL-4399: corrected the examples as per review 2020-10-24 18:59:11 +05:30
Amitabh Tiwari 71daa1a7c1 BAEL-4399:Changes for showing NoSuchFieldError 2020-10-23 21:36:49 +05:30
mikr 0e54f859cc JAVA-2824 Fix tests in Java 9 and above modules 2020-10-22 22:04:22 +02:00
mikr 96c386649d JAVA-2824 Fix tests in Java 9 and above modules 2020-10-22 10:42:10 +02:00
Kai Yuan 9f9f0c40f5 [BAEL-4284] AbstractMethodError 2020-10-21 22:39:43 +02:00
johnA1331 2bf7f715b0 Update README.md 2020-10-21 11:41:32 +08:00
johnA1331 3a1bcc1a15 Update README.md 2020-10-21 11:25:34 +08:00
bfontana 147a5e157f Merge pull request #10156 from stancalau/BAEL-4218
Explanation of “ClassCastException” in Java
2020-10-20 21:25:25 -03:00
Kai Yuan 41609ee63f [BAEL-4533] get class names from a jar 2020-10-19 10:19:55 +02:00
Eric Martin d6d7661771 Merge pull request #10127 from amdegregorio/BAEL-4503
BAEL-4503
2020-10-18 21:40:33 -05:00
AmitB 000275f9f7 [BAEL-4495] - Add test for case when 2nd collection is also hashset (#10175)
* [BAEL-4495] Performance of removeAll() in a HashSet

* [BAEL-4495] Add unit test for hashset removeAll()

* [BAEL-4495] Update test methods to camelCase

* [BAEL-4495] Add test for case when 2nd collection is also hashset
2020-10-18 08:59:00 -07:00
amdegregorio 7d297f344f BAEL-4503 PR/article review feedback 2020-10-17 08:28:31 -04:00
Loredana Crusoveanu 7c07677faa Merge pull request #10138 from tjrbrom/patch-1
Pass unused "millis" argument to lock.tryLock method, line 76.
2020-10-16 19:19:11 +03:00
Loredana Crusoveanu a1f52c6135 Merge pull request #10148 from dgcd/fix_typos_in_jigsaw_module
Fixed typos in core-java-9-jigsaw module
2020-10-16 19:06:52 +03:00
Loredana Crusoveanu 0aebf12bb9 Merge pull request #9768 from tweimer/patch-1
Replace StringBuffer with StringBuilder and add initial capacity
2020-10-16 19:02:17 +03:00
Daniel Strmecki 061fa3d12a BAEL-4504: Add finally 2020-10-15 16:59:16 +02:00
mateusz.szablak bbdf2ae686 BAEL-4212 (String) or .toString()? - code + tests 2020-10-15 16:18:27 +02:00
Cristian Stancalau af0db9610e Fix review suggestions. 2020-10-14 18:22:32 +03:00
Cristian Stancalau 6a82d1cde6 Reformat 2020-10-12 16:37:08 +03:00
Cristian Stancalau 4c748f7a23 Explanation of “ClassCastException” in Java 2020-10-12 16:35:24 +03:00
Daniel Strmecki 40029ed9fc BAEL-4504: Wrong artifact ID 2020-10-11 11:16:32 +02:00
Daniel Strmecki 42455830c0 BAEL-4504: Fix PR comments 2020-10-11 11:14:36 +02:00
Daniel Strmecki f80f82781f BAEL-4504: Move find free port to networking-3 2020-10-11 10:22:42 +02:00
dgcd 103bd4cf65 Fixed typos in core-java-9-jigsaw module 2020-10-11 01:23:32 +03:00
johnA1331 ac480ad0cc Update README.md 2020-10-07 17:29:57 +08:00
johnA1331 9d8d8a6587 Update README.md 2020-10-07 17:18:48 +08:00
Nikolaos Themelis a1229f66e4 Pass unused "millis" argument to lock.tryLock method, line 76. 2020-10-07 11:41:31 +03:00
kwoyke 90382576f6 BAEL-4661: Add an example of creating a file using FileOutputStream (#10131) 2020-10-06 08:08:09 +02:00
amdegregorio 9735c8c093 BAEL-4503 2020-10-03 17:07:52 -04:00
Umang Budhwar d48defc3e2 BAEL-4531 (#10093)
* Added code for checking if a class is abstract or not.

* Renamed test name as per review comments.
2020-10-02 21:58:12 -05:00
johnA1331 c68b6f68b5 Update README.md 2020-10-02 13:31:26 +08:00
johnA1331 f77d8a6b4e Update README.md 2020-10-02 13:19:45 +08:00
johnA1331 39c0a4fa84 Update README.md 2020-10-02 13:16:46 +08:00
johnA1331 cfdbef76ba Update README.md 2020-10-02 13:09:22 +08:00
johnA1331 76676ebfd8 Update README.md 2020-10-02 13:05:41 +08:00
Eric Martin 18e32676fe Merge pull request #10057 from chris9408/feature/BAEL-4415
BAEL-4415 get a list of trusted certificates in Java
2020-09-28 22:54:10 -05:00
unknown 69d7f51947 IsLetter / isAlphabetic method unit tests 2020-09-28 04:04:49 +05:30
Eric Martin dd2c527a69 Merge pull request #10043 from sk1418/classObj
[BAEL-4532]a.getClass() vs A.class
2020-09-27 08:49:17 -05:00
doodoroma cb401569d9 Merge pull request #10062 from azhwani/TBAEL4396
BAEL-4396: Find the last modified file in a directory with Java
2020-09-27 10:44:04 +02:00
Kai Yuan 428e8dac62 [BAEL-4532]a.getClass() vs A.class 2020-09-26 19:25:36 +02:00
azhwani 725a7b2a7a Add cleanUp 2020-09-25 18:40:26 +01:00
johnA1331 86876c57d1 Update README.md 2020-09-24 03:40:31 +08:00
johnA1331 bea5c242af Update README.md 2020-09-24 03:39:09 +08:00
johnA1331 46c071b40b Update README.md 2020-09-24 02:55:21 +08:00
Cristian Stancalau 20a3070093 BAEL-4156 Does a method's signature in Java include its return type? (#10049)
* BAEL-4156 Does a method's signature in Java include its return type?

* BAEL-4156 Add varargs

* Update OverloadingErrors.java

Co-authored-by: Cristian Stancalau <cstancalau@consultant.ffn.com>
2020-09-23 09:23:50 -07:00
Cristian Rosu 478e6ccff6 BAEL-4415 correct line continuations indent to 2 spaces 2020-09-23 17:36:48 +03:00
Cristian Rosu 465a878d02 BAEL-4415 correct package name 2020-09-23 17:34:42 +03:00
sahil.singla 27953f3bb1 Applied formatter 2020-09-22 22:18:17 +05:30
bfontana 4caee42f39 Merge pull request #10064 from rezaep/master
BAEL-4488 Fix indents
2020-09-21 21:09:50 -03:00
bfontana 7eb338f990 Merge pull request #10055 from akeshri/master
PR review changes
2020-09-21 20:28:39 -03:00
Reza Ebrahimpour fd9e75c6e2 BAEL-4488 Fix indents 2020-09-21 21:48:26 +03:30
azhwani 5d29ae5bbd first commit 2020-09-21 11:16:03 +01:00
Cristian Rosu 4503d5c3f7 BAEL-4415 get a list of trusted certificates in Java 2020-09-20 19:57:43 +03:00
akeshri c4d98a6596 changes 2020-09-20 15:25:29 +05:30
bfontana 26c7ec551d Merge pull request #10032 from rezaep/master
BAEL-4488 List available cipher algorithms
2020-09-19 16:32:21 -03:00
Dhawal Kapil ac4b85634f Merge pull request #9998 from Maiklins/JAVA-2394-Create-default-and-integration-profile-for-JDK-9-and-above-modules
Java-2394 Create default and integration profile for JDK-9 and above modules
2020-09-20 00:03:11 +05:30
Umang Budhwar f134833952 Refactored code to use generic methods and use streams. (#10052) 2020-09-19 09:19:13 -07:00
Loredana 4a7cde7d32 Merge branch 'master' of https://github.com/eugenp/tutorials 2020-09-18 12:04:36 +03:00
Dhawal Kapil 1c732be61a Merge pull request #10042 from kwoyke/JAVA-2904-md
JAVA-2904: Fix README.MD files extension
2020-09-17 23:15:16 +05:30
Vishal a47ed70f36 Add maven compiler plugin for java 11 2020-09-17 16:41:47 +05:30
Reza Ebrahimpour 15ba49d0f4 BAEL-4488 Convert class with main to UnitTest class 2020-09-17 10:25:37 +04:30
Krzysiek 1509fa5ddc JAVA-2904: Fix README.MD files extension 2020-09-16 22:20:32 +02:00
Kai Yuan 4ce6b34c06 [BAEL-4583] Improvement- Java Period 2020-09-16 21:28:06 +02:00
Vishal c6f067c17f Add examples to demo IndexOutOfBoundsException while using Collectins.copy method and other working demos to copy elements from one list to another list 2020-09-16 22:43:42 +05:30
johnA1331 a61f3c9b54 Update README.md 2020-09-16 23:56:46 +08:00
johnA1331 5c0391cf68 Update README.md 2020-09-16 23:42:36 +08:00
johnA1331 258f1be8ac Update README.md 2020-09-16 22:56:33 +08:00
johnA1331 c221c2fa0b Update README.md 2020-09-16 22:52:52 +08:00
johnA1331 c79db10648 Update README.md 2020-09-16 22:51:52 +08:00
johnA1331 29577bd777 Update README.md 2020-09-16 22:43:16 +08:00
Loredana Crusoveanu 760ba574e4 Merge pull request #10038 from kwoyke/JAVA-2599
JAVA-2599: Handle Windows specific exception in the ExistenceUnitTest
2020-09-16 15:05:05 +03:00
Krzysiek 989acd5ed7 JAVA-2599: Handle Windows specific exception in the ExistenceUnitTest 2020-09-16 10:11:58 +02:00
Loredana Crusoveanu b64433bb36 Merge pull request #10033 from kwoyke/JAVA-2599
JAVA-2599: Update OS specific unit tests
2020-09-15 17:53:40 +03:00
Krzysztof Woyke 4f14873967 JAVA-2599: Update OS specific unit tests 2020-09-15 10:28:34 +02:00
Reza Ebrahimpour 0976c32038 BAEL-4488 Create AvailableCiphers 2020-09-15 11:12:24 +04:30
AmitB 12b3067cd2 [BAEL-4495] Performance of removeAll() in a HashSet (#10011)
* [BAEL-4495] Performance of removeAll() in a HashSet

* [BAEL-4495] Add unit test for hashset removeAll()

* [BAEL-4495] Update test methods to camelCase
2020-09-14 21:44:25 -07:00
gupta-ashu01 ed7ce4ce34 BAEL-4567 (#10007)
* BAEL-4567

BAEL-4567

* Add files via upload

* Add files via upload

* Delete SendMailWithAttachment.java

* Update pom.xml

* Formatting fixes
2020-09-13 10:05:45 -07:00
Eric Martin 840c588179 Merge pull request #9959 from j0rdanit0/BAEL-4534
Added code examples for BAEL-4534
2020-09-13 10:56:13 -05:00
kwoyke 972ff96699 BAEL-4587: Update Guide to Java Reflection (#9997)
* BAEL-4587: Migrate Guide to Java Reflection to core-java-11-2

* BAEL-4587: Replace deprecated isAccessible method with canAccess
2020-09-12 19:08:22 +02:00
kwoyke ebf5019635 BAEL-4589: Update Guide to Java 8's Collectors (#10009)
* BAEL-4589: Move Guide to Java 8’s Collectors to core-java-11-2

* BAEL-4589: Add Java 10 unmodifiable* collectors examples
2020-09-12 09:44:47 +02:00
bfontana 7b11eeb69b Merge pull request #9941 from akeshri/master
BAEL-4383 : HashMap - getting First Key value
2020-09-10 21:18:27 -03:00
akeshri 2f91865363 changes 2020-09-10 09:26:24 +05:30
mikr ae5ee571b9 Java-2394 Create default and integration profile for JDK-9 and above modules 2020-09-10 01:08:03 +02:00
sahil.singla 213d5cfe39 BAEL-4558: Article for stopping execution after a certain time 2020-09-10 00:29:18 +05:30
sahil.singla 20a6e042f2 BAEL-4558: Article for stopping execution after a certain time 2020-09-10 00:24:37 +05:30
kwoyke 99381e0b15 BAEL-4588: Update Guide To Java 8 Optional (#9995)
* BAEL-4588: Fix maven-shade-plugin version

* BAEL-4588: Add empty core-java-11-2 module structure

* BAEL-4588: Move Guide To Java 8 Optional to core-java-11-2

* BAEL-4588: Add Java 10 orElseThrow() example
2020-09-09 18:35:31 +02:00
Jordan Simpson cf15c1b002 Update core-java-modules/core-java-lang-3/src/test/java/com/baeldung/checkclassexistence/CheckClassExistenceUnitTest.java
Co-authored-by: KevinGilmore <kpg102@gmail.com>
2020-09-09 08:18:57 -05:00
Jordan Simpson 10efba315d Update core-java-modules/core-java-lang-3/src/test/java/com/baeldung/checkclassexistence/CheckClassExistenceUnitTest.java
Co-authored-by: KevinGilmore <kpg102@gmail.com>
2020-09-09 08:18:51 -05:00
Jordan Simpson 576d3c5f42 Update core-java-modules/core-java-lang-3/src/test/java/com/baeldung/checkclassexistence/CheckClassExistenceUnitTest.java
Co-authored-by: KevinGilmore <kpg102@gmail.com>
2020-09-09 08:18:46 -05:00
Jordan Simpson 1624cd3387 Update core-java-modules/core-java-lang-3/src/test/java/com/baeldung/checkclassexistence/CheckClassExistenceUnitTest.java
Co-authored-by: KevinGilmore <kpg102@gmail.com>
2020-09-09 08:18:38 -05:00
akeshri ece4d65065 changes 2020-09-09 09:34:10 +05:30
akeshri b331b1779f first pair code 2020-09-08 21:04:43 +05:30
rpvilao dec24bea88 Merge pull request #9926 from eugenp/feature/BAEL-4142
BAEL-4132: How to create a temporary directory/folder in Java?
2020-09-04 18:01:33 +01:00
Maciej Glowka 3fd8926145 BAEL-4297: fixed unsynchronized classes naming, added slf4j logging 2020-09-02 23:56:02 +02:00
Jordan Simpson b27e6a0470 Added braces to the if block 2020-09-02 09:00:42 -05:00
Maciej Glowka 9d24bc1598 BAEL-4297: example of IllegalMonitorStateException 2020-09-01 21:15:56 +02:00
Jordan Simpson 661027c771 Added code examples for BAEL-4534 2020-08-31 13:42:50 -05:00
Dhawal Kapil 55a5210a91 Merge pull request #9946 from Maiklins/Java-1462-reduce-logging-modules-core-java-io-2-spring-ejb-beans-spring-boot-security-spring-data-jpa-3
Java-1461 Reduce logging - core-java-io-2, spring-ejb-beans, spring-boot-security
2020-08-31 20:35:06 +05:30
Eric Martin 104c00c2a1 Merge pull request #9906 from gupta-ashu01/master
BAEL-4285
2020-08-30 11:38:46 -05:00
mikr d7e25cb6e9 Java-1462 Reduce logging - Modules core-java-io-2, spring-ejb-beans, spring-boot-security 2020-08-30 14:35:18 +02:00
gupta-ashu01 71b9fd959a Update ArrayStoreExceptionExample.java 2020-08-30 14:19:34 +05:30
KarthikBalaraman 93c0a00a48 BAEL-4523 - Added code example for article to find the largest power of 2 that is less than the given number (#9840) 2020-08-27 18:32:43 +01:00
kwoyke 6f2e3a9e6b BAEL-4578: Fix failing unit test (#9929) 2020-08-27 14:12:53 +02:00
Rui Vilao a237235804 BAEL-4132: How to create a temporary directory/folder in Java? 2020-08-26 13:18:37 +01:00
Amy DeGregorio aa96649458 BAEL 4401 (#9913)
* BAEL-4401

* Update with master and resolve conflicts
2020-08-24 08:20:26 -07:00
gupta-ashu01 765629be47 Adding File 2020-08-24 12:02:02 +05:30
gupta-ashu01 935b4c1278 Delete ArrayStoreExceptionExample.java 2020-08-24 11:09:01 +05:30
gupta-ashu01 da1d54699f changing package
changing package
2020-08-24 11:07:38 +05:30
gupta-ashu01 cec243af0d Update README.md 2020-08-24 11:01:12 +05:30
Eric Martin 88ae525fab Merge pull request #9874 from chris9408/feature/BAEL-4394
BAEL-4394: Line at a given number tests
2020-08-22 12:15:21 -05:00
gupta-ashu01 456c3322e7 Update README.md
BAEL-4285
2020-08-22 16:20:07 +05:30
gupta-ashu01 e7bef17346 BAEL-4285
BAEL-4285 A Guide to ArrayStoreException
2020-08-22 16:17:16 +05:30
Loredana Crusoveanu 9d27ebbc80 Merge pull request #9899 from johnA1331/master
BAEL-26976 add links to github-baeldung articles
2020-08-21 15:39:05 +03:00
kwoyke f9e54fd2f6 BAEL-4572: Add List#copyOf and Set#copyOf (#9903)
* BAEL-4572: Move Converting Between a List and a Set in Java to core-java-10

* BAEL-4572: Add Java10 examples
2020-08-21 14:33:39 +02:00
johnA1331 210c1ed732 Create README.md 2020-08-20 18:43:15 +08:00
johnA1331 7f3f7b6434 Update README.md 2020-08-20 18:33:43 +08:00
johnA1331 9b55b49677 Update README.md 2020-08-20 18:17:51 +08:00
johnA1331 5cf868be7f Update README.md 2020-08-20 18:03:52 +08:00
johnA1331 a2ad623ba5 Update README.md 2020-08-20 17:58:14 +08:00
johnA1331 705e9c0072 Update README.md 2020-08-20 17:47:05 +08:00
johnA1331 15dba0da1a Update README.md 2020-08-20 17:45:40 +08:00
johnA1331 1ed61c074c Update README.md 2020-08-20 17:28:41 +08:00
johnA1331 baed0ba3a2 Update README.md 2020-08-20 17:21:55 +08:00
johnA1331 86f836d42a Update README.md 2020-08-20 13:21:26 +08:00
johnA1331 4f44adacc9 Update README.md 2020-08-20 13:18:56 +08:00
johnA1331 af9ba73025 Update README.md 2020-08-20 13:15:17 +08:00
johnA1331 13566b8c2d Update README.md 2020-08-20 13:02:58 +08:00
kwoyke c9e9ff79e9 BAEL-3722: Sync article and the code (#9897) 2020-08-19 14:27:29 +02:00
davidmartinezbarua a9ae4595dc Merge pull request #9853 from rutujavjoshi/master
BAEL-4193 -updated files
2020-08-19 01:22:16 -03:00
Cristian Rosu c0258feff8 BAEL-4394: simplified assert statements + fixed type 2020-08-17 23:45:43 +03:00
Rutuja Joshi 39ba03a488 Delete README.md 2020-08-17 21:11:50 +05:30
Rutuja Joshi 10d571fd1d pom : added new module core-java-exceptions-3
added new module core-java-exceptions-3
2020-08-17 19:37:28 +05:30
Rutuja Joshi f00adab98c BAEL-4193 - initial commit
initial commit in new module core-java-exceptions-3
2020-08-17 19:33:14 +05:30
Rutuja Joshi ccad8d217f Delete SpecialToday.java
Moving code to  a new module - core-java-exceptions-3
2020-08-17 16:51:16 +05:30
Rutuja Joshi 02fb2aee85 Delete MainMenu.java
Moving code to  a new module - core-java-exceptions-3
2020-08-17 16:50:59 +05:30
Rutuja Joshi b6e9fa3848 Delete MainMenuUnitTest.java
Moving code to  a new module - core-java-exceptions-3
2020-08-17 16:48:47 +05:30
Amit Pandey 2bad67ff38 added modules in parent (#9842)
* added modules in parent

* commented failed modules in pom
2020-08-17 10:33:20 +05:30
Amit Pandey 62432a2532 Java 2387 (#9882)
* fix junit test cases

* added module in parent build
2020-08-17 10:30:19 +05:30
Dhawal Kapil f8531e4bbc Merge pull request #9880 from eugenp/story/JAVA-95
Update README.md
2020-08-16 23:39:22 +05:30
davidmartinezbarua a3ccd178e1 Merge pull request #9653 from anmoldeep0123/BAEL_4302
BAEL-4302 : How can I list all classes loaded in a specific class loader
2020-08-16 11:52:41 -03:00
Dhawal Kapil 44afb00d22 Update README.md 2020-08-16 08:46:46 +05:30
Carlos Grappa bb34174aeb BAEL 2881 (#9639)
* BAEL-4154 IOException Too many open files

* Add comment to explain GC dependency

* Add HPPC, remove Colt & Trove

* Add inplace iterators for fastutil and extra maps for HPPC

Co-authored-by: Carlos Grappa <carlos.grappa@mercadolibre.com>
2020-08-15 21:59:34 +01:00
Eric Martin 2ac7e8af89 Merge pull request #9852 from alimate/BAEL-4536
BAEL-4536: Improvement - compareTo Implementations
2020-08-15 11:35:32 -05:00
Cristian Rosu 9a102f03af BAEL-4394: Line at a given number tests 2020-08-15 16:48:24 +03:00
root 2fe9016a23 final comments 2020-08-13 16:10:01 +00:00
root 9230a93045 Merge remote-tracking branch 'upstream/master' into BAEL_4302 2020-08-13 15:51:21 +00:00
Loredana Crusoveanu f055e59e61 Merge pull request #9856 from johnA1331/master
BAEL-27115 - github-related test fix (results: 03.08.2020)
2020-08-13 16:41:23 +03:00
Rutuja Joshi eb4ce37f31 Update MainMenuUnitTest.java
Updated the method name to follow BDD conventions
2020-08-13 08:31:19 +05:30
Loredana b532f998db BAEL-4395 fix test 2020-08-12 19:32:27 +03:00
Rutuja Joshi ea9c64147b BAEL-4193 (updated files)
- removed not needed fields
2020-08-12 07:24:44 +05:30
Ali Dehghani 1945c8a312 Fixed the "Lambda Sort" Article 2020-08-12 01:50:52 +04:30
Ali Dehghani e7d3347960 Fixed the "Sorting in Java" Article 2020-08-12 01:41:12 +04:30
Ali Dehghani 41964ef72e Fixed the "Comparator and Comparable in Java" Article 2020-08-12 01:23:02 +04:30
Mona Mohamadinia 94f50e785e ThreadLocals and Thread Pools (#9592) 2020-08-11 19:20:22 +01:00
Daniel Strmecki ded13f14b2 Feature/bael 4280 diff between lists (#9600)
* BAEL-4280: Initial commit for finding diff between lists

* BAEL-4280: Format

* BAEL-4280: Refactor

* BAEL-4280: Refactor not to use private methods

* BAEL-4280: Refactor based on editor comments

* BAEL-4280: Review round 2

* BAEL-4280: Use assertj

* BAEL-4280: Use assertj

* BAEL-4280: Shorter names for tests

* BAEL-4280: Remove HashSet as its not used anymore

* BAEL-4280: Use containsExactlyInAnyOrder for Set example

* BAEL-4280: Remove distinct method call

* BAEL-4280: Move impl to test

* BAEL-4280: Use containsExactlyInAnyOrder

* BAEL-4280: Rename test methods
2020-08-11 18:29:46 +01:00
Loredana Crusoveanu 26f21645a4 Merge pull request #9624 from luvarqpp/patch-1
Fix exception when receiving POISON_PILL
2020-08-11 17:30:01 +03:00
johnA1331 fffbcfc2c0 Update README.md 2020-08-11 11:24:33 +08:00
Oussama BEN MAHMOUD 099b9e9121 BAEL-4392: Java Files Open Options 2020-08-09 02:05:27 +02:00
Jonathan Cook 8da19e2b88 Merge pull request #9760 from umangbudhwar/master
BAEL-4329: Set field value with reflection
2020-08-08 20:43:56 +02:00
Jonathan Cook 53a869163c Merge pull request #9794 from LeasyZhang/determin-primitive-objects
LeasyZhang/shiwangzhihe@gmail.com
2020-08-07 11:07:15 +02:00
Eric Martin 0eb980a047 Merge pull request #9780 from majajoksovic/master
BAEL-4395
2020-08-06 19:47:13 -05:00
joe zhang 54796738f8 update unit test 2020-08-06 23:14:19 +08:00
Rutuja Joshi 4c4cafde1e Added New File(s) - BAEL-4193 NoSuchMethodError 2020-08-05 15:16:51 +05:30
Rutuja Joshi 5db4e332b9 Added New Classes
BAEL-4193 NoSuchMethodError
2020-08-05 15:07:34 +05:30
Umang Budhwar a27969cc70 Refactored code to use existing variables. 2020-08-03 21:01:57 +05:30
joe zhang 33841c2034 use utility class directly 2020-08-03 22:52:22 +08:00
Umang Budhwar 7ec5e6824e Refactored code to use short primitive instead of Short wrapper class. 2020-08-02 22:36:02 +05:30
Mona Mohamadinia 353f454fe0 Improve How to Count the Number of Matches for a Regex? (#9788) 2020-08-02 16:36:13 +01:00
Mona Mohamadinia 8527d58063 BAEL-4391: Check if a file exists in Java (#9748)
* Check if a file exists in Java

* Simple Assertions
2020-08-02 16:30:53 +01:00
Maja Joksovic 6fc0c42586 fixed indentation 2020-08-01 22:58:00 +02:00
Sampada f18d4dfa98 BAEL-3836: Fix failing test in core-java-concurrency-advanced-3 (#9806)
* BAEL-3836: Fix failing test in core-java-concurrency-advanced-3

* BAEL-3836: Fix failing test in core-java-concurrency-advanced-3
2020-08-01 13:09:35 -07:00
davidmartinezbarua acf23c0a11 Merge pull request #9621 from jesperancinha/BAEL-4281
[BAEL-4281] Examples of array comparisons
2020-07-31 11:16:14 -03:00
rpvilao 7c10e08e5b Merge pull request #9756 from MajewskiKrzysztof/BAEL-4289
BAEL-4289
2020-07-31 10:59:01 +01:00
joe zhang ae479954f4 refactor unit test name 2020-07-31 00:33:26 +08:00
joe zhang 6e43adc107 determine if an Object is of primitive type 2020-07-30 21:15:06 +08:00
joe zhang f29c757e18 determine if an Object is of primitive type 2020-07-30 21:09:33 +08:00
joe zhang 1deeca3b47 determine if an Object is of primitive type 2020-07-30 21:00:51 +08:00
Krzysztof Majewski baa46f6f4f rename 2020-07-30 11:26:57 +02:00
Krzysztof Majewski 12322ff46b update test 2020-07-29 08:59:06 +02:00
joe zhang 45be1b6045 Add primitive type check method and unit tests 2020-07-28 21:12:15 +08:00
Maja Joksovic 000ce564ff changed variable names 2020-07-28 10:03:46 +02:00
Maja Joksovic 784ea2b061 clean-up 2020-07-28 08:26:32 +02:00
Maja Joksovic 2a58dcf29d initial commit 2020-07-28 01:33:43 +02:00
Eric Martin cc012802de Merge pull request #9732 from alimate/BAEL-4140
BAEL-4140: A Guide to BitSet in Java
2020-07-27 09:49:53 -05:00
TJ 94555a4510 BAEL-4403 (#9740)
* Hexagonal architecture in Java

* BAEL-4403

* Revert "Hexagonal architecture in Java"

This reverts commit 7ba4c9dcbd99ca418c070a73bd9ab9f6c956d185.

* Updated code to use only Console

* Added System.out

* Created seaprate method for each functionality

* Added Unit Test Case for ConsoleAndOut class

Co-authored-by: Tarun Jain <tarunalways@gmail.com>
2020-07-25 20:59:54 -07:00
Tobias Weimer 3718d15004 Update SHACommonUtils.java
Replace StringBuffer with StringBuilder and add initial  capacity.
StringBuilder is faster because it is not synchronized.
2020-07-25 23:24:14 +02:00
root 1299a22eb5 Review - II Kevin Gilmore Changes 2020-07-25 18:28:28 +00:00
root c1a9c42194 Review - II Kevin Gilmore 2020-07-25 18:23:39 +00:00
Loredana Crusoveanu 6db8bd17a0 Merge pull request #9719 from eugenp/JAVA-2096-v2
Java 2096 v2
2020-07-25 20:29:54 +03:00
root 74ebfa24ef Merge remote-tracking branch 'upstream/master' into BAEL_4302 2020-07-25 17:26:15 +00:00
Umang Budhwar 0a2f6a4615 Added code to set a field using Reflection. 2020-07-24 20:13:23 +05:30
johnA1331 9057d216f2 Update README.md 2020-07-24 13:24:43 +08:00
Krzysztof Majewski 2127c79354 BAEL-4289 2020-07-23 19:00:08 +02:00
johnA1331 43d6584d8b Update README.md 2020-07-23 22:19:29 +08:00
johnA1331 19a50da589 Update README.md 2020-07-23 21:48:24 +08:00
johnA1331 bf922cb955 Update README.md 2020-07-23 21:39:16 +08:00
johnA1331 0423acd0d2 Update README.md 2020-07-23 21:24:48 +08:00
johnA1331 38af7ca655 Update README.md 2020-07-23 21:21:28 +08:00
johnA1331 0df52dda7c Update README.md 2020-07-23 21:03:11 +08:00
Loredana Crusoveanu 7a75ba5c17 Merge pull request #9746 from johnA1331/master
BAEL-26336 github-related test fix (results: 18.07.2020)
2020-07-23 11:43:39 +03:00
Ali Dehghani a72f2f144c Switching the For Blocks! 2020-07-22 19:43:35 +04:30
Mona Mohamadinia 11501b461c Moving to a new module (#9681) 2020-07-22 15:41:08 +01:00
johnA1331 a1e32f7488 Update README.md 2020-07-22 14:44:35 +08:00
johnA1331 5d02496340 Create README.md 2020-07-21 22:21:37 +08:00
johnA1331 77a82e3ccc Update README.md 2020-07-21 22:19:17 +08:00
johnA1331 119c8f323f Create README.md 2020-07-21 22:16:18 +08:00
johnA1331 ff9954f92b Update README.md 2020-07-21 21:47:50 +08:00
johnA1331 dd7ea46e67 Update README.md 2020-07-21 21:42:55 +08:00
johnA1331 74af675f9d Update README.md 2020-07-21 21:35:34 +08:00
johnA1331 6f5d916af7 Update README.md 2020-07-21 21:31:47 +08:00
johnA1331 18b08a36d9 Update README.md 2020-07-21 21:20:08 +08:00
johnA1331 802c896ad8 Update README.md 2020-07-21 21:12:22 +08:00
johnA1331 38250a3c4f Update README.md 2020-07-21 21:07:30 +08:00
johnA1331 6101e18ee9 Update README.md 2020-07-21 21:04:41 +08:00
johnA1331 6290718aea Update README.md 2020-07-21 20:58:35 +08:00
johnA1331 9dae4a6815 Update README.md 2020-07-21 19:56:19 +08:00
johnA1331 55ca9ce17a Update README.md 2020-07-21 19:49:25 +08:00
johnA1331 f43ceb0298 Update README.md 2020-07-21 19:48:51 +08:00
johnA1331 6124a914db Update README.md 2020-07-21 19:47:53 +08:00
johnA1331 f8370fbcb3 Update README.md 2020-07-21 19:47:30 +08:00
johnA1331 aecf8d4a4b Update README.md 2020-07-21 19:43:56 +08:00
johnA1331 9d5c0637a5 Update README.MD 2020-07-21 16:46:09 +08:00
Joao Esperancinha cffc591b5c [BAEL-4281] Naming convention and conversion to assertJ 2020-07-21 07:53:52 +02:00
Joao Esperancinha ad1d9b4b84 [BAEL-4281] moves example module 2020-07-21 07:53:45 +02:00
Dhawal Kapil 23ea65bee8 Merge pull request #9370 from mangstadt/patch-1
Use ServiceLoader class to obtain service instance
2020-07-21 06:41:51 +05:30
Ali Dehghani 030fa1b523 Polish. 2020-07-20 21:00:35 +04:30
Ali Dehghani bacce9abc8 Polish. 2020-07-20 20:07:37 +04:30
Ali Dehghani 3433279c30 A Guide to BitSet in Java 2020-07-20 20:04:15 +04:30
Josh Cummings 714d1dbcf9 Merge pull request #9687 from sampada07/JAVA-619
JAVA-619: Split or move core-java-modules/core-java-io-apis module
2020-07-18 09:29:08 -06:00
Loredana 176fc37a44 JAVA-2096 remove unused dependencies 2020-07-17 09:33:34 +03:00
Loredana Crusoveanu 6c9c43e60b Merge pull request #9707 from Maiklins/JAVA-2096-update-Create-File-article
JAVA-2096 Update "Create File" article
2020-07-17 09:27:47 +03:00
SauDev dc06936a5d BAEL-4135 - When are static variables initialized? (#9607)
* Hexagonal Architecture in Java

A quick and practical example of Hexagonal Architecture in Java

* Fixed code formatting issues

* When are static variables initialized

Sample class and test class.

* Revert "When are static variables initialized"

This reverts commit c781923093ccc88bc269bea276653169065cb17b.

* Revert "Revert "When are static variables initialized""

This reverts commit 2bffdf401d4e7dc2cefd7eb16357b2d51271edad.

* New java module for static variable

Created a new core-java-lang-3 module for static variables.

* PR review changes: Added more scenarios to the static variable test

Covered the following cases:
1. Variable initialization in a static block
2. Variable initialization in a static nested class
2020-07-16 23:13:25 -07:00
mikr 0b083391bb JAVA-2096 Add dummy file to make sure the directory is versioned 2020-07-16 10:45:06 +02:00
mikr 34d2e20e56 JAVA-2096 Update "Create File" article 2020-07-15 12:33:27 +02:00
root d52f676eda Merge remote-tracking branch 'upstream/master' into BAEL_4302 2020-07-14 19:03:16 +00:00
root c5c128033d Code Review BAEL-4302 2020-07-14 18:59:16 +00:00
Loredana Crusoveanu 8756adc2d5 Merge pull request #9702 from Maiklins/JAVA-2097-update-Rename-File-article
Java-2097 update rename file article
2020-07-14 17:45:20 +03:00
mikr 31d314f7b5 JAVA-2097 Update "Rename File" article 2020-07-14 14:11:12 +02:00
Krzysztof Woyke 81b412c6e7 JAVA-2109: Move Guide to the Java TransferQueue to the core-java-concurrency-collections-2 2020-07-14 13:30:03 +02:00
Krzysztof Woyke 9481177e62 JAVA-2109: Fix core-java-concurrency-collections-2 module configuration 2020-07-14 13:24:41 +02:00
Krzysiek 845a8968c7 JAVA-2105: Move articles out of core-java-io module 2020-07-13 21:17:54 +02:00
Eric Martin 205c49b3e4 Merge pull request #9646 from alimate/BAEL-4115
BAEL-4115: Memory Address of Objects in Java
2020-07-13 11:16:45 -05:00
Eric Martin db13e0ec44 Merge pull request #9608 from SmartyAnsh/BAEL-4175_Comparing_version_Strings_in_Java
BAEL-4175 - comparing version strings in java
2020-07-13 10:54:11 -05:00
Jonathan Cook 44fd4f91b4 Merge pull request #9419 from alexbaeldung/tutorial/Convert-an-array-of-primitives
feat: Convert an array of primitives to a List
2020-07-13 08:29:23 +02:00
Anshul BANSAL f43b2141dd BAEL-4175 - swapped argument order for assertEquals 2020-07-13 06:11:58 +03:00
Catalin Burcea ff310e08e6 BAEL-4219 - How to read .pem file to get private and public key (#9676) 2020-07-12 11:03:46 -07:00
Umang Budhwar 1a8969f376 BAEL-4089: Accesing private properties of a class in Java (#9441)
* Added code to access private properties of a class

* Removed abstractions to increase simplicity.

* Added unit test cases in givenX_whenY_thenZ format.

* Included test cases for NoSuchFieldException, NoSuchMethodException and
NullPointerException.

* Added new test case for IllegalArgumentException

* Removed test cases for getting private methods

* Added test cases for accessing all data types.

* Segregated test cases for primitive and object types. Added test case
for Autoboxing.

* Condensed fields by removing extra space.

* Added test case for widening.

* Refactored test cases to throw generic Exception

* Created new module core-java-reflection-2

* Revert "Created new module core-java-reflection-2"

This reverts commit 9568663bb2e176eacc2119e605be76577f90b9c6.

* Added new module core-java-reflection-2

* Removed README.MD
2020-07-12 10:50:54 -05:00
Sampada 0012e59ebd JAVA-2111: Split or move core-java-jvm module (#9688)
* JAVA-2111: Moved boolean Memory Layout article

* JAVA-2111: Moved Shutdown Hooks article

* JAVA-2111: Updated README files

* JAVA-2111: Fixed prev link
2020-07-12 21:05:16 +05:30
Jonathan Cook 44c664a34d Merge pull request #9660 from martinvw/feature/BAEL-4213
[BAEL-4213] Why are local variables thread safe
2020-07-12 09:31:37 +02:00
sampadawagde 9e82ccd895 JAVA-619: Split or move core-java-modules/core-java-io-apis module 2020-07-12 08:56:13 +05:30
Martin van Wingerden da6ee4cc12 [BAEL-4213] Why are local variables thread safe
Added two small example for article about thread-safety for local variables.
2020-07-11 21:31:16 +02:00
amit.pandey 0716abb5e7 used properties defined in parent pom 2020-07-12 00:06:27 +05:30
rpvilao 6e3b90bca7 Update pom.xml 2020-07-10 20:32:25 +02:00
Jordan Simpson 9bc1cf4864 Update StringToBooleanUnitTest.java 2020-07-10 08:52:48 -05:00
rpvilao fe2bab2224 Merge branch 'master' into BAEL-4300 2020-07-10 09:51:15 +01:00
Amy DeGregorio a934b4099b BAEL 4157 Move examples to new core-java-lang-3 module (#9678) 2020-07-10 08:15:07 +02:00
Dhawal Kapil dd08319954 Merge pull request #9675 from kwoyke/JAVA-2106
JAVA-2106: Move Java Convert PDF to Base64 to the pdf module
2020-07-10 09:29:22 +05:30
Eric Martin 3292c9d822 Merge pull request #9626 from alimate/BAEL-4138
BAEL-4138: Measuring the Object Sizes in JVM
2020-07-09 19:32:11 -05:00
Krzysiek 7320889762 JAVA-2106: Move Java Convert PDF to Base64 to the pdf module 2020-07-09 18:44:46 +02:00
Anshul BANSAL a027dc8833 POM fixes 2020-07-09 10:19:08 +03:00
Anshul BANSAL 7f16e3e80e BAEL-4175 - moved code to a new module - core-java-string-operations-3 2020-07-09 10:13:30 +03:00
Anshul BANSAL 2e66a84425 correct import 2020-07-09 10:02:05 +03:00
Anshul Bansal 0c612f78e8 used assertFalse in place of assertEquals 2020-07-09 10:01:20 +03:00
Anshul Bansal d7f9bec70b Update core-java-modules/core-java-string-operations-2/src/test/java/com/baeldung/versioncomparison/VersionComparisonUnitTest.java
Co-authored-by: KevinGilmore <kpg102@gmail.com>
2020-07-09 09:59:50 +03:00
kwoyke 77bec48917 JAVA-2108: Move Introduction to Protonpack to the libraries-6 (#9673) 2020-07-09 08:39:13 +05:30
Jordan Simpson daf844520f Moved pom module next to the other core-java-lang-x modules. 2020-07-08 10:54:58 -05:00
Loredana Crusoveanu 7ab2f437ee Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
root b2a0fcd76b BAEL-4302 : How can I list all classes loaded in a specific class loader 2020-07-06 16:10:46 +00:00
Josh Cummings a5f4340e19 Merge pull request #9595 from amit2103/JAVA-2019
Align module names, folder names and artifact id
2020-07-06 07:42:02 -06:00
amit.pandey 424fe87a4a pom formatting - arrang tags as per standard order 2020-07-06 17:36:09 +05:30
Ali Dehghani 15f10601bc Memory Address of Objects in Java 2020-07-06 12:06:26 +04:30
Eric Martin 960f1a578b Merge pull request #9584 from alimate/BAEL-4295
BAEL-4295: When Does Java Throw the ExceptionInInitializerError?
2020-07-05 13:55:10 -05:00
Jordan Simpson 3d2f49d5d1 Merge remote-tracking branch 'origin/BAEL-4300' into BAEL-4300 2020-07-05 12:09:24 -05:00
Jordan Simpson 33152d2d68 Changed "More" to "Next" and added forward reference to core-java-lang-3 2020-07-05 12:09:12 -05:00
Jordan Simpson 980c18dd29 Delete .gitignore 2020-07-05 11:43:41 -05:00
Alex P. Baeldung 5017cb2dbd feat: Convert an array of primitives to a List 2020-07-04 22:09:23 +02:00
Roque Santos 535c88153d BAEL-4163 - Counting matches for a regex (#9466)
* BAEL-4163 - Counting matches for a regex

* BAEL-4163 - Fixing build problemns

* BAEL-4163 : Adding more test to assure quality of the examples

* BAEL-4163 : Fixing request changes

* BAEL-4163 : Minor adjustements to give more context about the commented out tests

* BAEL-4163 : Tests for overlap example
2020-07-04 10:29:58 +01:00
Eric Martin 1538dc248d Merge pull request #9567 from alimate/BAEL-4275
BAEL-4275: The Stack-Walking API for Currently Executing Method
2020-07-02 11:54:51 -05:00
Ali Dehghani 40a70e44ac Added the Java Agent Example 2020-07-02 14:26:40 +04:30
Ali Dehghani 5aa4950b33 Removing an Unused Import 2020-07-02 13:17:28 +04:30
Ali Dehghani a222727c3e Added the JOL Examples 2020-07-02 13:16:53 +04:30
Amy DeGregorio d9e6fdf735 BAEL-4157 Examples (#9596) 2020-07-02 08:27:30 +02:00
luvarqpp 48cdcb20fb Fix exception when receiving POISON_PILL
POISON_PILL is causing writing to closed client due to logic in code.
2020-07-01 15:39:19 +02:00
Jordan Simpson 762797c29d Moved opening bracket up with class definition 2020-06-29 12:05:00 -05:00
rpvilao 885c9f456a Merge pull request #9576 from developerDiv/macaddress
BAEL-4155 - MAC Address on Local Machine
2020-06-29 10:53:48 +02:00
Anshul BANSAL 875ecfc12b BAEL-4175 - comparing version strings in java 2020-06-29 10:23:20 +03:00
developerDiv 80b55f35a5 Update test to be more specific 2020-06-28 21:28:10 +01:00
Eric Martin 19fd3a7510 Merge pull request #9574 from alimate/BAEL-4274
BAEL-4274: Default Serial Version UID
2020-06-28 10:30:14 -05:00
bfontana bd36e63161 Merge pull request #9590 from alimate/BAEL-4310-2
BAEL-4310: Moved the Array Length Example to the new Module
2020-06-27 18:03:39 -03:00
amit.pandey 7ac0bd7ca7 Align module names, folder names and artifact id 2020-06-28 01:10:13 +05:30
kwoyke 96e48fed81 BAEL-4323: Rename getters to follow Java Beans convention (#9569) 2020-06-27 18:20:22 +02:00
kwoyke ef41e8caa1 BAEL-4312: Add Java Stream example (#9559) 2020-06-27 18:05:37 +02:00
Ali Dehghani b0a88534e5 Moved the Array Length Example to the new Module 2020-06-27 09:45:28 +04:30
Sampada 3b3013bfb0 BAEL-3977: Upgrade Guava modules/articles to newest Guava version (#9587)
* BAEL-3977: Upgrade Guava modules/articles to newest Guava version

* BAEL-3977: Guava version upgrade
2020-06-26 14:25:48 -07:00
davidmartinezbarua be126034fa Merge pull request #9570 from alimate/BAEL-4116-2
BAEL-4116: Moved the Memory Layout Codebase to a new Module
2020-06-26 16:57:32 -03:00
Jonathan Cook 5039fc7d71 Merge pull request #9463 from amy-regnier/master
Initial commit of code to accompany article on copying data from Inpu…
2020-06-26 13:22:33 +02:00
Josh Cummings d7c98c56db Merge pull request #9535 from amit2103/JAVA-1830
Java 1830
2020-06-25 19:39:28 -06:00
Eric Martin 7b0332e00c Merge pull request #9529 from alimate/BAEL-4272
BAEL-4272: Reentrant Synchronized Blocks
2020-06-25 19:59:30 -05:00
Ali Dehghani 4ceb18d445 When Does Java Throw the ExceptionInInitializerError? 2020-06-26 04:08:27 +04:30
Jordan Simpson 85acab7915 Added code examples for BAEL-4300 article. 2020-06-25 15:16:48 -05:00
Loredana Crusoveanu bf5c396967 Merge pull request #9568 from johnA1331/master
BAEL-25522 github-related test fix (results: 18.06.2020)
2020-06-25 14:30:49 +03:00
Ali Dehghani 672d6ed5d8 Fixed a typo 2020-06-25 13:32:33 +04:30
developerDiv bb2060ee78 Move to java-core-networking-2 2020-06-24 22:07:48 +01:00
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