Commit Graph

4396 Commits

Author SHA1 Message Date
YuCheng Hu e1f6933b33
添加 JDK 9 版本的测试代码到项目中 2024-05-01 22:16:24 -04:00
YuCheng Hu 310d94f083
删除 Java 8-2 的文件夹 2024-05-01 12:21:15 -04:00
YuCheng Hu d3af25788b
Java 8 版本合并 2024-05-01 12:13:04 -04:00
YuCheng Hu e9b942e360
Got Code Clean up 2024-05-01 11:52:35 -04:00
YuCheng Hu c3c6d1cf51
Update the String 2024-04-30 19:40:03 -04:00
YuCheng Hu f913b35e66
修改编译错误 2024-04-30 17:31:16 -04:00
YuCheng Hu a39f37d144
完成所有代码的更新和提交 2024-04-30 17:23:43 -04:00
YuCheng Hu 2336a45881
Fixed the issue of java compile for 17 2024-04-30 15:10:44 -04:00
YuCheng Hu a51b7b55d9
Merge remote-tracking branch 'Baeldung/master' into active_mq
# Conflicts:
#	.gitignore
#	LICENSE
#	README.md
#	core-java-modules/README.md
#	core-java-modules/core-java-11/README.md
#	core-java-modules/core-java-11/pom.xml
#	core-java-modules/core-java-8/README.md
#	core-java-modules/core-java-8/pom.xml
#	core-java-modules/core-java-8/src/main/resources/logback.xml
#	core-java-modules/core-java-annotations/README.md
#	core-java-modules/core-java-annotations/pom.xml
#	core-java-modules/core-java-collections-2/README.md
#	core-java-modules/core-java-collections-2/pom.xml
#	core-java-modules/core-java-collections-3/README.md
#	core-java-modules/core-java-collections-3/pom.xml
#	core-java-modules/core-java-collections-conversions-2/README.md
#	core-java-modules/core-java-collections-conversions-2/pom.xml
#	core-java-modules/core-java-collections-conversions/README.md
#	core-java-modules/core-java-collections-conversions/pom.xml
#	core-java-modules/core-java-collections-list/README.md
#	core-java-modules/core-java-collections-list/pom.xml
#	core-java-modules/core-java-collections/pom.xml
#	core-java-modules/core-java-datetime-conversion/README.md
#	core-java-modules/core-java-datetime-conversion/pom.xml
#	core-java-modules/core-java-datetime-conversion/src/test/java/com/baeldung/datetime/ConvertInstantToTimestampUnitTest.java
#	core-java-modules/core-java-io-2/pom.xml
#	core-java-modules/core-java-io/README.md
#	core-java-modules/core-java-io/pom.xml
#	core-java-modules/core-java-io/src/test/resources/fileTest.txt
#	core-java-modules/core-java-io/src/test/resources/sampleTextFile.txt
#	core-java-modules/core-java-lambdas/README.md
#	core-java-modules/core-java-lambdas/pom.xml
#	core-java-modules/core-java-serialization/pom.xml
#	core-java-modules/core-java-streams/README.md
#	core-java-modules/core-java-streams/pom.xml
#	core-java-modules/core-java-strings/README.md
#	core-java-modules/core-java-strings/pom.xml
#	core-java-modules/core-java-strings/src/test/resources/stringtoolong.txt
#	core-java-modules/core-java-uuid/README.md
#	core-java-modules/core-java-uuid/pom.xml
#	core-java-modules/pom.xml
#	image-processing/README.md
#	image-processing/pom.xml
#	image-processing/src/main/java/com/baeldung/imageprocessing/addingtext/AddText.java
#	image-processing/src/main/java/com/baeldung/imageprocessing/opencv/CameraStream.java
#	jackson-modules/jackson-annotations/README.md
#	jackson-modules/jackson-annotations/pom.xml
#	jackson-modules/jackson-conversions-2/README.md
#	jackson-modules/jackson-conversions-2/pom.xml
#	jackson-modules/jackson-conversions/README.md
#	jackson-modules/jackson-conversions/pom.xml
#	jackson-modules/jackson-custom-conversions/README.md
#	jackson-modules/jackson-custom-conversions/pom.xml
#	jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/defaultserializercustomserializer/CallingDefaultSerializerUnitTest.java
#	jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/deserialization/CustomDeserializationUnitTest.java
#	jackson-modules/jackson-exceptions/README.md
#	jackson-modules/jackson-exceptions/pom.xml
#	jackson-modules/jackson-exceptions/src/test/java/com/baeldung/exceptions/JacksonExceptionsUnitTest.java
#	jackson-modules/jackson-exceptions/src/test/java/com/baeldung/mappingexception/JacksonMappingExceptionUnitTest.java
#	jackson-modules/pom.xml
#	parent-boot-1/pom.xml
#	parent-boot-2/pom.xml
#	parent-boot-3/pom.xml
#	patterns-modules/design-patterns-architectural/pom.xml
#	patterns-modules/design-patterns-architectural/src/main/java/com/baeldung/repositoryvsdaopattern/UserDaoImpl.java
#	patterns-modules/design-patterns-behavioral-2/README.md
#	patterns-modules/design-patterns-behavioral-2/pom.xml
#	patterns-modules/design-patterns-creational-2/README.md
#	patterns-modules/design-patterns-creational-2/pom.xml
#	patterns-modules/design-patterns-singleton/README.md
#	patterns-modules/design-patterns-structural/src/main/resources/log4jstructuraldp.properties
#	patterns-modules/enterprise-patterns/pom.xml
#	patterns-modules/intercepting-filter/pom.xml
#	patterns-modules/pom.xml
#	persistence-modules/activejdbc/pom.xml
#	persistence-modules/hibernate5/README.md
#	persistence-modules/hibernate5/pom.xml
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/interceptors/CustomInterceptor.java
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/interceptors/entity/User.java
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/namingstrategy/CustomPhysicalNamingStrategy.java
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/persistjson/Customer.java
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/persistjson/HashMapConverter.java
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/pojo/OrderEntryIdClass.java
#	persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/pojo/OrderEntryPK.java
#	persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/IdentifiersIntegrationTest.java
#	persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/bootstrap/BootstrapAPIIntegrationTest.java
#	persistence-modules/hibernate5/src/test/java/com/baeldung/hibernate/proxy/HibernateProxyUnitTest.java
#	persistence-modules/hibernate5/src/test/resources/hibernate-interceptors.properties
#	persistence-modules/hibernate5/src/test/resources/hibernate-lifecycle.properties
#	persistence-modules/hibernate5/src/test/resources/hibernate-namingstrategy.properties
#	persistence-modules/hibernate5/src/test/resources/hibernate-persistjson.properties
#	persistence-modules/hibernate5/src/test/resources/hibernate.properties
#	persistence-modules/pom.xml
#	persistence-modules/spring-data-jpa-crud/pom.xml
#	persistence-modules/spring-data-jpa-crud/src/main/java/com/baeldung/repository/FruitRepository.java
#	persistence-modules/spring-data-jpa-repo-2/README.md
#	persistence-modules/spring-data-jpa-repo-2/pom.xml
#	persistence-modules/spring-data-jpa-repo-2/src/main/java/com/baeldung/spring/data/persistence/customrepository/model/User.java
#	persistence-modules/spring-data-jpa-repo-2/src/main/java/com/baeldung/spring/data/persistence/customrepository/repository/CustomUserRepositoryImpl.java
#	persistence-modules/spring-data-jpa-repo-2/src/main/java/com/baeldung/spring/data/persistence/saveperformance/Book.java
#	persistence-modules/spring-data-jpa-repo-2/src/main/resources/application.properties
#	persistence-modules/spring-data-mongodb-reactive/pom.xml
#	persistence-modules/spring-data-redis/README.md
#	persistence-modules/spring-data-redis/pom.xml
#	persistence-modules/spring-data-redis/src/main/java/com/baeldung/spring/data/reactive/redis/config/RedisConfig.java
#	persistence-modules/spring-data-redis/src/main/java/com/baeldung/spring/data/redis/config/RedisConfig.java
#	persistence-modules/spring-data-redis/src/main/java/com/baeldung/spring/data/redis/model/Student.java
#	persistence-modules/spring-data-redis/src/main/java/com/baeldung/spring/data/redis/queue/RedisMessageSubscriber.java
#	persistence-modules/spring-data-redis/src/test/java/com/baeldung/spring/data/reactive/redis/template/RedisKeyCommandsManualTest.java
#	persistence-modules/spring-data-redis/src/test/java/com/baeldung/spring/data/reactive/redis/template/RedisTemplateListOpsManualTest.java
#	persistence-modules/spring-data-redis/src/test/java/com/baeldung/spring/data/reactive/redis/template/RedisTemplateValueOpsManualTest.java
#	persistence-modules/spring-data-redis/src/test/java/com/baeldung/spring/data/redis/repo/StudentRepositoryManualTest.java
#	pom.xml
#	testing-modules/assertion-libraries/README.md
#	testing-modules/assertion-libraries/pom.xml
#	testing-modules/junit-5-basics/README.md
#	testing-modules/junit-5-basics/pom.xml
#	testing-modules/mockito-2/src/main/java/com/baeldung/nullmatcher/Helper.java
#	testing-modules/mockito-2/src/main/java/com/baeldung/nullmatcher/Main.java
#	testing-modules/mockito-2/src/main/java/com/baeldung/wantedbutnotinvocked/Helper.java
#	testing-modules/mockito-2/src/main/java/com/baeldung/wantedbutnotinvocked/Main.java
#	testing-modules/mockito-2/src/test/java/com/baeldung/nullmatcher/MainUnitTest.java
#	testing-modules/mockito-2/src/test/java/com/baeldung/wantedbutnotinvocked/MainUnitTest.java
#	testing-modules/pom.xml
#	testing-modules/spring-mockito/pom.xml
#	web-modules/dropwizard/pom.xml
#	web-modules/jakarta-ee/README.md
#	web-modules/jakarta-ee/pom.xml
#	web-modules/jakarta-ee/src/test/java/com/baeldung/eclipse/krazo/UserControllerUnitTest.java
#	web-modules/java-lite/pom.xml
#	web-modules/javax-servlets-2/README.md
#	web-modules/javax-servlets-2/pom.xml
#	web-modules/javax-servlets/pom.xml
#	web-modules/jee-7/pom.xml
#	web-modules/jooby/pom.xml
#	web-modules/ninja/pom.xml
#	web-modules/pom.xml
#	web-modules/ratpack/pom.xml
#	web-modules/resteasy/pom.xml
#	web-modules/restx/pom.xml
#	web-modules/spark-java/pom.xml
#	web-modules/vraptor/pom.xml
#	xml/README.md
#	xml/pom.xml
#	xml/src/main/resources/customer-binding.xml
#	xml/src/main/resources/sax/baeldung.xml
#	xml/src/test/resources/example_default_parser.xml
#	xml/src/test/resources/example_dom4j.xml
#	xml/src/test/resources/example_jaxb.xml
#	xml/src/test/resources/example_jaxen.xml
#	xml/src/test/resources/example_jdom.xml
#	xml/src/test/resources/example_stax.xml
#	xml/src/test/resources/sax/baeldung.xml
#	xml/src/test/resources/xml/websites.xml
#	xml/src/test/resources/xml/xee_attribute.xml
2024-04-30 12:23:19 -04:00
YuCheng Hu 48d168a628
删除编译错误 2024-04-30 12:14:52 -04:00
YuCheng Hu e2820ab2e3
删除编译错误 2024-04-30 12:12:39 -04:00
YuCheng Hu a7b2f168b7
合并 Java -11 版本 2024-04-30 12:11:52 -04:00
YuCheng Hu 8f011093e5
Change properties file by use encoding UTF-8 2024-04-30 11:34:11 -04:00
YuCheng Hu 81e009c67e
merge code for testing 2024-04-30 11:00:56 -04:00
YuCheng Hu 8bc8c31009
Update and send to main package 2024-04-30 09:53:32 -04:00
YuCheng Hu 899c4d7bbc
Merge List section 2 to main section 2024-04-30 09:35:09 -04:00
YuCheng Hu 9dc6847a96
Update README.md 2024-04-30 09:30:50 -04:00
YuCheng Hu 80c4ccc441
core-java-lambdas up date package for ossez 2024-04-30 09:28:47 -04:00
YuCheng Hu afc5ab001b
core-java-lambdas 项目添加 2024-04-30 09:21:11 -04:00
Liam Williams 8cabe509a5
Merge pull request #16479 from sk1418/int-to-short
[int-to-short] int to short
2024-04-29 01:34:13 +01:00
Mikhail Polivakha bb0116b5d5
Migrated BAEL-7190 to a new module (#16518)
* BAEL-7190 implementation

* Migrated BAEL-7190 to a new module

* Revert "BAEL-7190 implementation"

This reverts commit dd947aefda7b12a0eb06030b5d89f2ada77834a5.
2024-04-28 12:05:04 -07:00
Eugene Kovko ba73008ee9
BAEL-7885: Simple tests for addAll (#16504)
* BAEL-7885: Simple tests for addAll

* BAEL-7885: Stream test example
2024-04-28 11:20:08 -07:00
Eugene Kovko edf65df452
BAEL-7862: Float conversion tests (#16506)
* BAEL-7862: Float conversion tests

* BAEL-7862: Float Collector
2024-04-27 14:17:49 -07:00
Eugene Kovko c4b34c1793
Bael 7853 (#16503)
* BAEL-7853: Removed unnecessary dependencies

* BAEL-7853: Simple PriorityQueue tests

* BAEL-7853: Additional example with Meetings
2024-04-27 14:08:02 -07:00
Mo Helmy eca1d4920a
This commit is related to BAEL-7858 (#16507)
This commit aims to add a test class "RemoveAllCharsBeforeSpecificOneUnitTest".
2024-04-27 14:02:06 -07:00
Dominique Plante 14c41ff72a
Merge pull request #16488 from yadavan88/twos-complement
Added code to calculate twos complement of a number
2024-04-27 11:55:25 -07:00
YuCheng Hu 87a004e47a
更新 UUID 文档内容 2024-04-27 13:34:32 -04:00
YuCheng Hu 7efaee81ea
更新标题 2024-04-27 08:27:44 -04:00
YuCheng Hu afe803be48
更新 Java UUID 中问文章 2024-04-27 08:27:10 -04:00
YuCheng Hu afb622ad78
Update UUID 2024-04-27 08:20:01 -04:00
YuCheng Hu 86ba6dfe74
Move the link for document 2024-04-27 08:02:07 -04:00
YuCheng Hu 203042a696
更新注解文件说明 2024-04-27 07:36:47 -04:00
YuCheng Hu 79eee60239
更新 Java 8 中的设计模式策略 2024-04-27 07:31:50 -04:00
Loredana Crusoveanu 2731096e4d
Merge branch 'master' into master 2024-04-27 14:05:55 +03:00
vunamtien b17f9029a1
[JAVA-31850] Split-or-move-core-java-lang-6 (#16484)
* [JAVA-31850] Split-or-move-core-java-lang-6

* [JAVA-31850] Split-or-move-core-java-lang-6: Fix missing dependency version of core-java-lang-7
2024-04-26 23:51:19 +02:00
Eugene Kovko 197353bb52
BAEL-7880: Tests for flattening array (#16496)
* BAEL-7880: Tests for flattening array

* BAEL-7880: Additonal tests for flattening array

* BAEL-7880: Fix formatting
2024-04-26 10:23:02 -07:00
Eugene Kovko 55e3ff793e
Bael 7882 (#16500)
* BAEL-7882: Test for finding the index of the smallest number

* BAEL-7882: Added new test cases

* BAEL-7882: Added an example with Apache Commons
2024-04-26 09:42:44 -07:00
Eugene Kovko 0522022a08
Bael 7892 (#16491)
* BAEL-7892: Test for comparing numbers

* BAEL-7892: Added a test for floating point numbers

* BAEL-7892: Fix typos
2024-04-26 09:29:33 -07:00
YuCheng Hu 5d12fa28c1
完成更新 Java 新特性预览内容的翻译和处理 2024-04-25 18:16:01 -04:00
vunamtien 0bc686a11e
[JAVA-31848] Split-or-move-core-java-collections-5 (#16482) 2024-04-25 23:40:46 +02:00
vunamtien 3088ff9e3b
[JAVA-31836] Split-or-move-core-java-string-operations-7 (#16481) 2024-04-25 23:13:36 +02:00
Mo Helmy 7a5cbf3971
This commit is related to BAEL-7854 (#16489)
This commit aims to add a test class named "HashMapCharacterCountUnitTest".
2024-04-25 09:20:58 -07:00
vunamtien 211df8196f
[BAEL-7767] Convert-between-ZonedDateTime-and-Date (#16490) 2024-04-25 18:01:54 +02:00
Eugene Kovko df6b36303a
BAEL-7231: Moved the code to a separate module (#16272) 2024-04-25 08:51:31 -07:00
Yadukrishnan fb121ee632 Used the correct method in test 2024-04-25 15:12:24 +05:30
Yadukrishnan 6d61ab3761 Added another approach for the calculation 2024-04-25 09:44:27 +05:30
Yadukrishnan 03aaa9ceeb Added code to calculate twos complement of a number 2024-04-25 09:28:10 +05:30
Maiklins f73582b17d
Merge pull request #16428 from voidabhi/BAEL-7441
[BAEL-7441] Fixing EOFException in Java
2024-04-24 22:17:26 +02:00
Kai.Yuan 7b3b52c224 [int-to-short] add intToShort() 2024-04-24 21:31:05 +02:00
Eugene Kovko 5a12777c4f
BAEL-7894: Basic tests (#16483) 2024-04-24 11:49:05 -07:00