Commit Graph

895 Commits

Author SHA1 Message Date
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