Commit Graph

1829 Commits

Author SHA1 Message Date
Eugene Kovko 5ee332c606 BAEL-5349 Example for the difference between map and hashmap (#11827)
* example for the difference between map and hashmap

* unit tests for the example

* rename unit tests

Co-authored-by: eugene.kovko <eugene.kovko@tensquaregames.com>
2022-02-21 17:05:08 -08:00
vunamtien 082d48e291 BAEL-5379-create-simple-rock-paper-scissors-game (#11846)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-02-21 18:35:48 +01:00
Haroon Khan cd70006bb6 [JAVA-9986] Fix ThreadStamped unit test 2022-02-17 08:51:17 +00:00
polomos 7966e98d90 BAEL-4388 Test reading keyStore without trustAnchor (#11785) 2022-02-15 15:14:36 -06:00
vunamtien 864b139aa4 BAEL-5332-convert-byte-array-and-uuid (#11822)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-02-15 21:19:44 +01:00
Loredana Crusoveanu c2aa464af1 Merge pull request #11706 from mobinskariya/master
Move arrive and wait after thread sleep and detailed logging
2022-02-15 18:15:41 +02:00
Loredana Crusoveanu 9dc5d75a16 formatting, additional details on how to run the app 2022-02-15 13:39:08 +02:00
Loredana Crusoveanu a4a03c4790 move remaining files for instrumentation article 2022-02-15 13:31:37 +02:00
Mayank Agarwal 7995f7d7c5 BAEL-5351: Moved to core-java-collections-4 2022-02-13 16:43:59 +05:30
johnA1331 63ea5889d2 Create README.md 2022-02-09 14:06:10 +08:00
vaibhav007jain 1bf44ff8ef BAEL-5280: added code for ArrayIndexOutOfBoundsException. (#11772)
* commited initial code for hexagonal architecture

* Deleting to check in again

* Deleing to check in again

* Push first code for Hexagonal Architecture

* final code with UT for JSON to Java conversion

* removed hexagonal-architecture code from last commit

* BEL-5071 updated README

* BAEL-5071: Undo README changes and added a nested object in the JSON example.

* BAEL-5071: fixed whitespace/indentation in JsonToJavaClassConversion.java

* BAEL-5151: Added code for getting the first of a String

* BAEL-5151: Renamed Unit Test

* BAEL-5151: Moved the files from core-java-string-operations to core-java-string-operations-3

* BAEL-5151: Replaced tabs with white spaces.

* BAEL-5228: Adding code for approaches to concatening null string in java

* BAEL-5228: Moved file to correct folder and added a UT.

* BAEL-5228: corrected import statements.

* BAEL-5228: corrected last commit.

* BAEL-5228: removed extra import.

* BAEL-5228: renamed UT

* BAEL-5280: added code for ArrayIndexOutOfBoundsException.

* BAEL-5280: moved code for ArrayIndexOutOfBoundsException in a new module.

* BAEL-5280: Fixed tab/spaces in pom.xml.

* BAEL-5280: Fixed indentation in ArrayIndexOutOfBoundsExceptionDemoUnitTest.java.

Co-authored-by: Vaibhav Jain <vaibhav.ashokjain@vodafone.com>
2022-02-08 13:45:38 +05:30
johnA1331 a63ea1944d Update README.md 2022-02-08 12:11:51 +08:00
Mayank Agarwal b35d0ea7c4 BAEL-5351: Unit Tests name as per BBD convention 2022-02-08 00:40:07 +05:30
Haroon Khan e1212155fe [JAVA-9895] Split concurrency-basic-2 module 2022-02-07 12:19:20 +00:00
Mayank Agarwal 54f43a311a BAEL-5351: Resolved PMD violations by renaming file 2022-02-05 12:03:34 +05:30
Mayank Agarwal 7f88e21e92 BAEKL-5351: Added method for empty sorted map 2022-02-05 11:56:54 +05:30
Mayank Agarwal 2e8381fbd7 BAEL-5351: Added unit tests for empty map methods 2022-02-05 11:53:37 +05:30
Mayank Agarwal d2332a5c10 BAEL-5351: Added empty map initialization methods in Java 2022-02-05 11:52:40 +05:30
kwoyke 896d32c182 Merge pull request #11750 from hkhan/JAVA-9019-clean-up-log-statements
Java 9019 clean up log statements
2022-02-02 11:21:55 +01:00
Haroon Khan a7980094d1 [JAVA-9021] Clean up uncommitted artifacts (#11754) 2022-02-01 19:38:56 +05:30
ashleyfrieze 69e04d5ac0 BAEL-5354 Add improvement to cover JDK11 solution to the repeated string problem (#11756) 2022-01-30 21:49:04 -06:00
Haroon Khan fc145be4a8 [JAVA-9019] Logging clean up 2022-01-29 16:24:15 +00:00
Haroon Khan f72971181e [JAVA-9019] Logging clean up 2022-01-28 22:50:49 +00:00
Haroon Khan a8ce62042f [JAVA-9019] Move sysout lines to info logging 2022-01-28 22:20:11 +00:00
johnA1331 2b6ef89555 Update README.md 2022-01-26 17:48:52 +08:00
johnA1331 3874415836 Update README.md 2022-01-26 17:45:09 +08:00
johnA1331 f92a336512 Update README.md 2022-01-26 17:41:44 +08:00
johnA1331 f1bdc807b5 Update README.md 2022-01-26 17:39:48 +08:00
johnA1331 af7c764ce9 Update README.md 2022-01-26 17:35:42 +08:00
johnA1331 a5defe6121 Update README.md 2022-01-26 17:26:50 +08:00
davidmartinezbarua 32e682542b Merge pull request #11710 from mladensavic94/master
Difference between NIO and NIO.2?
2022-01-23 12:16:33 -08:00
Greg Martin ff1ebafe37 Merge pull request #11588 from sachin071287/feature/bael-5271
BAEL-5271 set custom thread name
2022-01-23 14:33:46 -05:00
Loredana Crusoveanu 958a85f567 Merge pull request #11730 from Asjad-J/master
BAEL-47433 - add links to github-baeldung articles
2022-01-23 18:58:37 +02:00
Asjad J 21b2f0127a Update README.md
add link back to article: Hidden Classes in Java 15
2022-01-23 10:08:00 +05:00
Asjad J 4d0b7e6899 Update README.md
added link back to article
2022-01-23 09:57:22 +05:00
Asjad J 7cfd820f5b Update README.md
added link back to article: Generating a Java String of N Repeated Characters
2022-01-23 09:40:01 +05:00
Arash Ariani db396b39a9 BAEL-5131: constructor specification is added c (#11586)
* BAEL-5131: constructor specification is added c

* BAEL-5131: codes have been reformatted

* BAEL-5131: I've added a few minor changes over on this package.

* BAEL-5131: I've added a few minor changes over on this package.
2022-01-22 15:55:53 -06:00
Ulisses Lima 7ad433dcb6 [BAEL-4806] - How to test an LDAP connection from a client: code (#11664)
* working code

* added unit test

* [BAEL-4806] - How to test an LDAP connection from a client

Ticket: http://jira.baeldung.com/browse/BAEL-4806
Draft: https://drafts.baeldung.com/wp-admin/post.php?post=125004&action=edit

* removing draft project

* applying requested changes

* 1. renaming package to comply with java conventions;
* 2. breaking class into methods to enhance readability;
* 3. creating an 'execute' method so it's not necessary to call 'main';

* requested changes

* 1. adding final keyword to constants;
* 2. using diamond operator;

* Update LdapConnectionToolManualTest.java
2022-01-22 19:59:45 +01:00
Vlad Fernoaga 9cb3d6e8e5 BAEL-4714 - Java Concurrent HashSet equivalent to ConcurrentHashMap (#11721)
* add article code and unit tests

* fix PMD rule violation

Co-authored-by: vlad fernoaga <vlad.fernoaga-external@getyourguide.com>
2022-01-21 07:48:48 -08:00
Azhwani 02e4cf9f99 first commit (#11716) 2022-01-20 19:27:09 -06:00
johnA1331 b9399fb5f7 Update README.md 2022-01-20 18:08:58 +08:00
johnA1331 17e0cc77a1 Update README.md 2022-01-20 17:52:02 +08:00
johnA1331 605fbc0f8b Update README.md 2022-01-20 17:50:55 +08:00
vunamtien caa13dd4d1 compute x509 certificate thumbprint (#11717)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-01-18 22:43:29 +01:00
Krzysiek 5f4543c31d JAVA-9486: Use guava.version defined in the parent pom 2022-01-17 20:18:43 +01:00
Loredana Crusoveanu 000f3082f4 Merge pull request #11713 from kwoyke/JAVA-9123
JAVA-9123: POM properties cleanup
2022-01-17 20:04:15 +02:00
Krzysiek 8c08be0403 JAVA-9123: POM properties cleanup 2022-01-17 14:03:32 +01:00
ACHRAF TAITAI 4380185074 first commit (#11683) 2022-01-16 14:58:04 -06:00
Mladen Savic d0735facef Difference between NIO and NIO.2? 2022-01-16 21:31:59 +01:00
davidmartinezbarua bd34e3b56e Merge pull request #11665 from aalbatross/origin/BAEL-5158
BAEL-5158: Find which jar file a class is from
2022-01-15 14:01:39 -03:00
mobin 31ddc6a45d Move arrive and wait after thread sleep and detailed logging 2022-01-15 16:37:28 +05:30
pabloubal eb05d3fec3 BAEL-5178:An introduction to InstantSource (#11646)
* BAEL-5178:An introduction to InstantSource

* BAEL-5178:PR fixes

Co-authored-by: Pablo Ubal <pablo.ubal@flexit.es>
2022-01-13 20:42:54 +05:30
Loredana Crusoveanu f351643119 Merge pull request #11686 from johnA1331/master
BAEL-47035 - add links to github-baeldung articles
2022-01-13 11:02:43 +02:00
kwoyke 4eb04dc0bc Merge pull request #11670 from freelansam/JAVA-9022
JAVA-9022: Fix formatting of POMs
2022-01-13 09:50:07 +01:00
ravipathak 2267201db6 BAEL-5158: removing finding class. 2022-01-13 08:30:05 +00:00
ravipathak 7860356ae1 Merge remote-tracking branch 'mine/origin/BAEL-5158' into origin/BAEL-5158 2022-01-13 08:24:28 +00:00
ravipathak a2bd7b50ed BAEL-5158: Sample App and Unit test for finding ObjectMapper class in a jar. 2022-01-13 08:23:42 +00:00
Sameer 3133ffba7f AES Key Generation Strategies #BAEL-4459 (#11685)
* ways to generate AES keys

* exceptional cases

Co-authored-by: IN22910366 <d7495b5879fca1ec1367476a5395a60a8e9baec9>
2022-01-13 07:56:28 +01:00
johnA1331 1b9fa338cf Update README.md 2022-01-13 14:07:20 +08:00
johnA1331 31094c80ef Update README.md 2022-01-13 14:03:15 +08:00
Teica 7a5d817a1d BAEL-5277 generate string of repeated characters (#11611)
* BAEL-5277 generate string of repeated characters

* BAEL-5277 fixed test

* BAEL-5277 fixing tests

* removed public from class and methods, removed unnecessary test examples, extracted contants

* renamed constants

* renamed a test

* fixed the string repeat test

* removed public from class and method

* modified the test

* reset the java version

* tests added

* added apache dependency

* removed repeat method for string

* updated tests

* fixed tests

* added two additional tests

* formatted code

* renaming variables

* 1.0.0 | FIX removed unnecessary annotation

* removing EMPTY_STRING constant

Co-authored-by: Matea Pejčinović <matea.pejcinovic@intellexi.hr>
2022-01-12 23:44:15 +00:00
Sarath Chandra fa2b75a81c [BAEL-5077] Hidden Classes (#11663) 2022-01-10 20:28:05 +01:00
sampadawagde 65f643262d JAVA-9022: Fix formatting of POMs 2022-01-10 22:05:47 +05:30
KevinGilmore 75e9a2dfbb BAEL-5276: add link back to article (#11662) 2022-01-08 22:34:43 -06:00
Azhwani b6cff5acd4 init commit (#11643) 2022-01-07 16:57:13 -06:00
Seshu Kumar T ca7f2cc363 BAEL 5273 Sequence Input Stream (2nd commit) (#11649)
* SequenceInputStream changes

* assert statements corrected by keeping order as (expected, actual)

Co-authored-by: Seshu Thanneeru <seshukumar.thanneeru@thoughtdata.com>
2022-01-06 21:13:40 +01:00
Daniel Strmecki 8bf612c07a Feature/bael 5176 random number generators (#11641)
* BAEL-5176: Add simple test

* BAEL-5176: Add benchmark runner

* BAEL-5176: Update examples

* BAEL-5176: Refactor

* BAEL-5176: Refactor

* BAEL-5176: Refactor
2022-01-06 08:54:44 +00:00
johnA1331 377708d242 Update README.md 2022-01-05 20:40:01 +08:00
johnA1331 9dbe5bca89 Update README.md 2022-01-05 20:38:06 +08:00
johnA1331 91d7c16524 Update README.md 2022-01-05 20:34:20 +08:00
johnA1331 9cc3165ab4 Update README.md 2022-01-05 20:22:48 +08:00
johnA1331 9deeba7850 Update README.md 2022-01-05 20:14:44 +08:00
johnA1331 fb19c5e98c Update README.md 2022-01-05 19:39:58 +08:00
johnA1331 c41716248a Update README.md 2022-01-05 19:22:24 +08:00
ravipathak 83f6ae5d9d BAEL-5158: Sample App and Unit test for finding ObjectMapper class in a jar. 2022-01-05 00:56:45 +00:00
Loredana Crusoveanu 590784ff38 Merge pull request #11443 from max-zhilin/patch-1
Update README.md
2022-01-03 16:58:27 +02:00
Azhwani 148627f1d0 init commit (#11623) 2022-01-02 22:13:38 -06:00
Mainak Majumder cf49235b4e Equals() Vs Contentequals() Method in Java (#11598)
* Application source code for the Baeldung article "HTTP PUT vs POST
method in REST API"

* update indention in pom file, update code in Address class

* update indention

* rename application

* update pom

* source code for article "Connection timeout vs read timeout"

* Source code for Baeldung article BAEL-4896

* update code

* code for article "String Equals() Vs Contentequals() Method in Java"

* update code with tests

* code update

* update test methods

* remove upper case and wrong sequence test

* remove wrong sequence and upper case string variables
2022-01-03 07:29:00 +05:30
Vartika Nigam eb49143a48 initial commit for BAEL-5185 (#11484)
* initial commit for BAEL-5185

* fixed issues

* fixed issues

* Added Junit test case

Co-authored-by: Vartika_Nigam <Vartika_Nigam@dellteam.com>
2021-12-30 07:43:09 +05:30
Viktor Ardelean 81642558b7 BAEL-5291 Convert String to Float and back in Java (#11619)
* add hexagonal architecture example project

* rename class

* add unit test and integration test

* add new line

* reorder pom

* remove maven wrapper

* BAEL-5291 unit tests to showcase conversion from String to Float and back

* BAEL-5291 add some more unit tests

* BAEL-5291 remove evaluation module

* BAEL-5291 rename method names
2021-12-29 12:55:09 +01:00
priya-soni 1b4c43f7ba BAEL-5241 : Formatting code snippets as part of documentation comments (#11630) 2021-12-28 19:09:38 +01:00
Sameer 7d4fd180d8 Mini articles/java unknown stack trace (#11627)
* unknown source in stack trace

* Improved comment

* creating an intentional exception

Co-authored-by: Sameer <d7495b5879fca1ec1367476a5395a60a8e9baec9>
2021-12-28 09:06:17 -08:00
Amitabh Tiwari 00e2fed473 Update MySerializationUtils.java 2021-12-27 19:28:25 +05:30
Amitabh Tiwari 2cec538ac1 Updated the code and test cases 2021-12-25 06:08:28 +05:30
lsieun 867d6573b3 BAEL-4286 How to get the value of a bit at a certain position from a byte (#11396)
* Convert Byte Array to its Numeric Representation

* Remove Redundant Getter Method

* BAEL-4286 How to get the value of a bit at a certain position from a byte

* BAEL-4286(update): remove redundant test methods
2021-12-24 07:45:44 +00:00
johnA1331 de62a4e03c Update README.md 2021-12-23 02:26:02 +08:00
johnA1331 1670cbe475 Update README.md 2021-12-23 02:09:49 +08:00
johnA1331 243cbbb227 Update README.md 2021-12-23 02:05:16 +08:00
Seshu Kumar T d2752a384e SequenceInputStream changes (#11590)
Co-authored-by: Seshu Thanneeru <seshukumar.thanneeru@thoughtdata.com>
2021-12-21 22:02:20 +01:00
kwoyke 514e80aae7 Merge pull request #11585 from chaos2418/JAVA-3591
JAVA-3591: updating mockito-core to 4.1.0
2021-12-20 09:38:12 +01:00
Kai Yuan dd9dcae1f4 add methods (#11579) 2021-12-18 18:56:28 -06:00
chaos2418 000dcdf966 JAVA-3591: updating mockito-core to 4.1.0 2021-12-18 13:40:53 +05:30
Sachin kumar 79bf0d9976 BAEL-5271 set custom thread name 2021-12-16 17:43:43 +05:30
Haroon Khan b8e5235446 [JAVA-8679] Fix test for JDK 17 2021-12-15 17:54:29 +00:00
Loredana Crusoveanu 89ca1a60ab Update README.md 2021-12-15 17:31:42 +02:00
sachin 53b9df34a2 Bael-5125 Java implicit super constructor is undefined error (#11566)
Co-authored-by: Sachin kumar <sachin.n.kumar@oracle.com>
2021-12-13 20:18:00 -06:00
Azhwani 389df860a6 BAEL-3763: Improvement: Add a section about the ISO_INSTANT formatter (#11537)
* init commit

* add parsing examples

* Adjust assertEquals order

* Add empty line before asserts
2021-12-12 21:52:38 -06:00
vunamtien 17981c9036 BAEL-5052-simulate-touch-command-in-java (#11560)
* BAEL-5052-simulate-touch-command-in-java

* refactor

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2021-12-11 07:35:40 +01:00
Loredana Crusoveanu 4054e8f860 Merge branch 'master' into JAVA-7244-Review_log_statements_for_projects 2021-12-09 10:22:41 +02:00
Sachin Raverkar 1b2115b2ce Bael 5275 (#11561)
* Initial impl of enum

* Added Java 8 based enum searcher and test for it.

* Moved code to core-java-enums

* Fixed test name and readme

* Reused existing module core-java-modules/core-java-lang-oop-types-2 instead of creating a new one.

* Reused existing module core-java-modules/core-java-lang-oop-types-2 instead of creating a new one.
2021-12-08 19:52:20 -08:00