Skip to content

Commit f9bef39

Browse files
authored
Merge pull request #2188 from schemacrawler/tweaks
Minor code updates
2 parents 02c54c2 + 5dbb2a8 commit f9bef39

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.github/workflows/early-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
git push --delete origin early-access-release || true
7070
git tag -a early-access-release -m "SchemaCrawler Early Access Release"
7171
git push --follow-tags origin early-access-release
72-
git show early-access-release
72+
git show --no-patch early-access-release
7373
- id: create-release
7474
name: Create GitHub early access release
7575
uses: softprops/action-gh-release@v2

schemacrawler-lint/src/main/java/schemacrawler/tools/lint/formatter/BaseLintReportJacksonGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import static tools.jackson.core.StreamReadFeature.IGNORE_UNDEFINED;
1313
import static tools.jackson.core.StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION;
1414
import static tools.jackson.core.StreamWriteFeature.IGNORE_UNKNOWN;
15+
import static tools.jackson.databind.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES;
1516
import static tools.jackson.databind.SerializationFeature.INDENT_OUTPUT;
1617
import static tools.jackson.databind.SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS;
1718
import static tools.jackson.databind.SerializationFeature.USE_EQUALITY_FOR_OBJECT_ID;
@@ -38,6 +39,7 @@ private static ObjectMapper newConfiguredObjectMapper(
3839

3940
requireNonNull(mapperBuilder, "No mapper builder provided");
4041
mapperBuilder.enable(ORDER_MAP_ENTRIES_BY_KEYS, INDENT_OUTPUT, USE_EQUALITY_FOR_OBJECT_ID);
42+
mapperBuilder.disable(FAIL_ON_NULL_FOR_PRIMITIVES);
4143
mapperBuilder.enable(INCLUDE_SOURCE_IN_LOCATION, IGNORE_UNDEFINED);
4244
mapperBuilder.enable(IGNORE_UNKNOWN);
4345

schemacrawler-operations/src/main/java/schemacrawler/tools/text/formatter/operation/BaseJacksonFormatter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import static tools.jackson.core.StreamReadFeature.IGNORE_UNDEFINED;
1313
import static tools.jackson.core.StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION;
1414
import static tools.jackson.core.StreamWriteFeature.IGNORE_UNKNOWN;
15+
import static tools.jackson.databind.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES;
1516
import static tools.jackson.databind.SerializationFeature.INDENT_OUTPUT;
1617
import static tools.jackson.databind.SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS;
1718
import static tools.jackson.databind.SerializationFeature.USE_EQUALITY_FOR_OBJECT_ID;
@@ -86,6 +87,7 @@ private static ObjectMapper newConfiguredObjectMapper(
8687

8788
requireNonNull(mapperBuilder, "No mapper builder provided");
8889
mapperBuilder.enable(ORDER_MAP_ENTRIES_BY_KEYS, INDENT_OUTPUT, USE_EQUALITY_FOR_OBJECT_ID);
90+
mapperBuilder.disable(FAIL_ON_NULL_FOR_PRIMITIVES);
8991
mapperBuilder.enable(INCLUDE_SOURCE_IN_LOCATION, IGNORE_UNDEFINED);
9092
mapperBuilder.enable(IGNORE_UNKNOWN);
9193

schemacrawler-scripting/src/main/java/schemacrawler/tools/formatter/serialize/BaseJacksonSerializedCatalog.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import static tools.jackson.core.StreamReadFeature.IGNORE_UNDEFINED;
1414
import static tools.jackson.core.StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION;
1515
import static tools.jackson.core.StreamWriteFeature.IGNORE_UNKNOWN;
16+
import static tools.jackson.databind.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES;
1617
import static tools.jackson.databind.SerializationFeature.INDENT_OUTPUT;
1718
import static tools.jackson.databind.SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS;
1819
import static tools.jackson.databind.SerializationFeature.USE_EQUALITY_FOR_OBJECT_ID;
@@ -115,6 +116,7 @@ private static ObjectMapper newConfiguredObjectMapper(
115116

116117
requireNonNull(mapperBuilder, "No mapper builder provided");
117118
mapperBuilder.enable(ORDER_MAP_ENTRIES_BY_KEYS, INDENT_OUTPUT, USE_EQUALITY_FOR_OBJECT_ID);
119+
mapperBuilder.disable(FAIL_ON_NULL_FOR_PRIMITIVES);
118120
mapperBuilder.enable(INCLUDE_SOURCE_IN_LOCATION, IGNORE_UNDEFINED);
119121
mapperBuilder.enable(IGNORE_UNKNOWN);
120122

0 commit comments

Comments
 (0)