Skip to content

Commit 41a5778

Browse files
committed
Merge remote-tracking branch 'origin/main' into ethereum
# Conflicts: # .idea/jarRepositories.xml
2 parents 131e0c6 + 16a1be7 commit 41a5778

154 files changed

Lines changed: 202 additions & 5213 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/compiler.xml

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dataSources.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 iSharkFly
3+
Copyright (c) 2024 iSharkFly
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Java 代码使用的是 JDK 17。
1515

1616
请使用下面的联系方式和我们联系:
1717

18-
| 联系方式名称 | 联系方式 |
19-
|--------|------------------------------------------------------|
20-
| 电子邮件 | [service@ossez.com](mailto:service@ossez.com) |
21-
| QQ 或微信 | 103899765 |
22-
| QQ 交流群 | 15186112 |
23-
| 社区论坛 | https://www.isharkfly.com/c/computer-program/java/15 |
18+
| 联系方式名称 | 联系方式 |
19+
|--------|-----------------------------------------------|
20+
| 电子邮件 | [service@ossez.com](mailto:service@ossez.com) |
21+
| QQ 或微信 | 103899765 |
22+
| QQ 交流群 | 15186112 |
23+
| 社区论坛 | https://www.ossez.com/c/open-source/java/15 |
2424

2525
# 公众平台
2626

core-java-modules/core-java-8-datetime/src/test/java/com/ossez/dateapi/JavaPeriodUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void whenTestPeriod_thenOk() {
4646

4747
Period period = Period.between(startDate, endDate);
4848

49-
logger.info(String.format("Years:%d months:%d days:%d", period.getYears(), period.getMonths(), period.getDays()));
49+
logger.info("Years:{} months:{} days:{}", period.getYears(), period.getMonths(), period.getDays());
5050

5151
assertFalse(period.isNegative());
5252
assertEquals(56, period.plusDays(50)

libraries-jackson/jackson/src/test/java/com/ossez/jackson/optionalwithjackson/OptionalTypeUnitTest.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
package com.ossez.jackson.optionalwithjackson;
22

33
import com.fasterxml.jackson.core.JsonProcessingException;
4-
import com.fasterxml.jackson.databind.JsonMappingException;
54
import com.fasterxml.jackson.databind.ObjectMapper;
65
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
7-
86
import static io.restassured.path.json.JsonPath.from;
9-
107
import java.io.IOException;
118
import java.util.Optional;
12-
139
import static org.assertj.core.api.Assertions.assertThat;
14-
1510
import org.junit.Test;
1611

1712
public class OptionalTypeUnitTest {
1813

1914
ObjectMapper mapper = new ObjectMapper().registerModule(new Jdk8Module());
2015

16+
@Test
2117
public void givenPresentOptional_whenSerializing_thenValueInJson() throws JsonProcessingException {
2218

2319
String subTitle = "The Parish Boy's Progress";
@@ -30,12 +26,6 @@ public void givenPresentOptional_whenSerializing_thenValueInJson() throws JsonPr
3026
assertThat(from(result).getString("subTitle")).isEqualTo(subTitle);
3127
}
3228

33-
@Test
34-
public void givenFieldWithValue_whenDeserializing_thenThrowExceptio() throws JsonProcessingException {
35-
String bookJson = "{ \"title\": \"Oliver Twist\", \"subTitle\": \"foo\" }";
36-
Book result = mapper.readValue(bookJson, Book.class);
37-
}
38-
3929
@Test
4030
public void givenEmptyOptional_whenSerializing_thenNullValue() throws JsonProcessingException {
4131

libraries-jackson/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<modules>
1818
<module>jackson</module>
19-
<module>jackson-annotations</module>
19+
<!-- <module>jackson-annotations</module>-->
2020
<module>jackson-conversions</module>
2121
<module>jackson-conversions-2</module>
2222
<module>jackson-custom-conversions</module>

testing-modules/assertion-libraries/src/main/java/com/baeldung/assertj/Dog.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

testing-modules/assertion-libraries/src/main/java/com/baeldung/assertj/Member.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)