Mateusz Szablak
9e995c1e41
BAEL-6489 Time Conversions Using TimeUnit ( #14390 )
2023-11-06 21:38:36 +00:00
danielmcnally285
392928ccfa
Remove unnecessary spy annotation and make unit tests package private
2023-11-06 20:59:54 +00:00
Bogdan Cardoş
4ef6b9039f
BAEL-6874 update test code for article ( #15155 )
...
* BAEL-6819 convert from int to Long in Java
* BAEL-6819 update package name
* BAEL-6874 test code for article
* BAEL-6874 rename test class
* BAEL-6874 update test code for article
2023-11-06 12:47:45 -08:00
mcasari
e0c7ddb52e
BAEL-6600 - limit max size by LinkedHashMap and custom HashMap
2023-11-06 20:38:18 +01:00
Ulisses Lima
03c615201f
Update InterruptThread.java
...
Based on a comment:
Section 6 should be headlined with “Using System.exit()” since that’s what stops code execution, not the boolean variable (this is just a means to decide that execution should be stopped, like the negative array element in section 4.
Also it’s unclear why we’d need the “if (isInterrupted())” statement in the while loop of the 8th section: how should isInterrupted() be true one line after we’ve checked in the while loop header that it’s false? Admittedly there’s a little chance that the interrupt status changed between these 2 lines, but this if statement would make much more sense somewhere in the business logic code where more time has passed since the evaluation of “while (!isInterrupted())”… and if that business code doesn’t have that complexity/length, one should omit this if statement altogether, since it creates more confusion than it helps for timely reaction on an interruption.
2023-11-06 16:26:35 -03:00
MohamedHelmyKassab
4d7e5eb5c9
This commit is related to the article BAEL-6988 ( #15149 )
...
This commit aims to add a test class "HexToIntConversionUnitTest.java" that provides several ways to convert Hex string into int.
2023-11-06 09:40:42 -08:00
Mo Helmy
946f849767
Update StreamToMapAndMultiMapUnitTest.java ( #15146 )
2023-11-06 09:34:00 -08:00
davidmartinezbarua
d847f0d335
Merge pull request #15122 from parthiv39731/PR-7177
...
BAEL-7177
2023-11-06 14:10:53 -03:00
davidmartinezbarua
68cfb27b6e
Merge pull request #15125 from sam-gardner/BAEL-7105-Add-code-for-StringBuilder-comparison
...
BAEL-7105 Add code for StringBuilder comparison
2023-11-06 12:53:46 -03:00
parthiv39731
fb2f90d88f
BAEL-7177
...
review comments implemented.
2023-11-06 19:08:47 +05:30
Loredana Crusoveanu
f3f39c2e56
Merge pull request #15133 from edizor/master
...
UPDATE README
2023-11-06 09:31:52 +02:00
Kai Yuan
63953b74f3
Nth substring ( #15120 )
...
* [nth-substring] nth substring in a string
* [nth-substring] find n-th substring
2023-11-05 19:26:25 -06:00
danielmcnally285
a8e298e389
Modify Optional value to be more descriptive
2023-11-05 20:11:49 +00:00
danielmcnally285
8f01f45455
Modify givenTwoObjects_whenUsingGoogleGuavaMoreObjects_thenReturnFirstNonNull() unit test to have two extra local variables for readability
2023-11-05 12:06:33 +00:00
danielmcnally285
88a92d399c
Add LazyEvaluate class
2023-11-05 11:43:32 +00:00
danielmcnally285
a33bdf8a03
Use String over Object for unit tests
2023-11-05 11:37:03 +00:00
danielmcnally285
9368968cea
Merge branch 'eugenp:master' into danielmcnally285_return_first_non_null
2023-11-05 11:32:42 +00:00
edizor
686196c040
Update README.md
...
[skip ci]
2023-11-05 13:16:48 +08:00
edizor
67d1902524
Update README.md
...
[skip ci]
2023-11-05 13:02:33 +08:00
edizor
252696e2b3
Update README.md
...
[skip ci]
2023-11-05 12:58:15 +08:00
edizor
88a874082d
Update README.md
...
[skip ci]
2023-11-05 12:49:07 +08:00
Mo Helmy
89744aff6c
This commit is related to BAEL-7161 ( #15132 )
...
This commit aims to add a test class "StreamToMapAndMultiMapUnitTest" that provides several approaches to convert Java stream to Map or MultiMap.
2023-11-04 20:06:13 -07:00
panos-kakos
d9fd96773e
[JAVA-26720] Upgraded opencsv to 5.8 version ( #15126 )
2023-11-04 15:23:42 +02:00
panos-kakos
1baaca3e37
[JAVA-26432] Update "Introduction to Java 8 Streams" article Clean up ( #15038 )
2023-11-04 12:01:25 +02:00
anuragkumawat
df78df7a81
JAVA-26394 Move java-native to core-java modules ( #15092 )
2023-11-04 11:23:37 +02:00
@hangga
32940c41e4
update time test
2023-11-04 15:28:49 +07:00
anuragkumawat
049770733c
JAVA-27176 Upgrade hibernate validator version in core-java-string-operations-2 module
2023-11-04 12:24:35 +05:30
vaibhav007jain
22ad2b88a8
Bael-7075: Initial Commit ( #15053 )
...
* Create VectorOperations.java
BAEL-7075: Initial Commit
* BAEL-7075: Create VectorOperationsUnitTest.java
* Delete core-java-modules/core-java-collections-5/src/main/java/com/baeldung/vectors/VectorOperations.java
* Update VectorOperationsUnitTest.java
* Update VectorOperationsUnitTest.java - Added one more test case
2023-11-04 11:02:23 +05:30
Michael Pratt
159461815d
New example and unit test
2023-11-03 15:31:25 -06:00
Michael Pratt
1aa2f849f4
Revert 2 changes unrelated to BAEL-7074
2023-11-03 13:10:24 -06:00
Sam Gardner
3d561e24df
BAEL-7105 Add code for StringBuilder comparison
2023-11-03 12:43:44 +00:00
Hangga Aji Sayekti
b7bc968da2
Update core-java-modules/core-java-uuid/src/main/java/com/baeldung/uuid/UUIDPositiveLongGenerator.java
...
Oh yeah..
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-03 17:13:48 +07:00
@hangga
899700f27e
[Update] add time field
2023-11-03 15:45:12 +07:00
Pedro Lopes
6f618f5cf9
BAEL-7128: Optional as a Record Parameter in Java ( #15114 )
...
* record class and test
* renaming test
2023-11-03 09:50:47 +05:30
Michael Olayemi
4c06d8e9f9
How to Document Generic Type Parameter ( #15108 )
...
* How to Documeny Generic Type Parameters
* How to Documeny Generic Type Parameters
2023-11-03 09:45:06 +05:30
Michael Pratt
38f30e733f
[BAEL-7074] Update tests
2023-11-02 19:23:43 -06:00
Michael Pratt
02e02f928f
[BAEL-7074] Synchronization for static data examples
2023-11-02 17:47:02 -06:00
parthiv39731
aa27014425
BAEL-7177
...
Modifying Objects within Stream while iterating
2023-11-02 23:12:45 +05:30
parthiv39731
a5d58617e2
BAEL-7177
...
Modifying Objects within Stream while iterating
2023-11-02 20:21:59 +05:30
@hangga
39bc0b9eaa
logback
2023-11-02 21:08:06 +07:00
Hangga Aji Sayekti
18220b12af
Update core-java-modules/core-java-uuid/src/test/resources/logback.xml
...
Ok..
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 21:05:07 +07:00
@hangga
7cc4de47ef
remove some space
2023-11-02 16:55:49 +07:00
@hangga
0f222559dc
simplyfying log
2023-11-02 14:16:43 +07:00
@hangga
69d17b634d
N to NUMBER_OF_CHECKS
2023-11-02 11:25:19 +07:00
Palaniappan Arunachalam
57840bb083
BAEL-4200: JNDI - What Is java:comp/env? ( #15081 )
2023-11-02 09:28:54 +05:30
@hangga
8f1a091a43
update : add space after ()
2023-11-02 09:42:31 +07:00
Hangga Aji Sayekti
a5d0a15419
Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
...
Simplify the throws clause
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:40:20 +07:00
Hangga Aji Sayekti
f25f06795b
Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
...
Simplify the throws clause
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:40:04 +07:00
Hangga Aji Sayekti
9fe75192ec
Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
...
assert that the value is positive
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:39:43 +07:00
Hangga Aji Sayekti
b946f580f4
Update core-java-modules/core-java-uuid/src/main/java/com/baeldung/uuid/UUIDPositiveLongGenerator.java
...
Minor style issue: put a space between () and { in each of these methods
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:39:17 +07:00