Skip to content

Commit 172f662

Browse files
committed
Add missing package descriptor
Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
1 parent 5eed03b commit 172f662

File tree

5 files changed

+35
-9
lines changed

5 files changed

+35
-9
lines changed

spring-batch-notion/src/main/java/org/springframework/batch/extensions/notion/NotionDatabaseItemReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public NotionDatabaseItemReader(String token, String databaseId, PropertyMapper<
9292
this.token = Objects.requireNonNull(token);
9393
this.databaseId = Objects.requireNonNull(databaseId);
9494
this.propertyMapper = Objects.requireNonNull(propertyMapper);
95-
setPageSize(DEFAULT_PAGE_SIZE);
95+
this.pageSize = DEFAULT_PAGE_SIZE;
9696
}
9797

9898
/**
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2024-2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* Infrastructure to map the properties of a Notion item into a Java object.
19+
*/
20+
@NullMarked
21+
package org.springframework.batch.extensions.notion.mapping;
22+
23+
import org.jspecify.annotations.NullMarked;

spring-batch-notion/src/test/java/org/springframework/batch/extensions/notion/mapping/BeanWrapperPropertyMapperTests.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.springframework.batch.extensions.notion.mapping;
1717

18+
import org.jspecify.annotations.Nullable;
1819
import org.junit.jupiter.api.Test;
1920
import org.junit.jupiter.params.ParameterizedTest;
2021
import org.springframework.batch.extensions.notion.mapping.TestData.AllPropertiesSource;
@@ -82,25 +83,25 @@ void should_fail_with_vararg_constructor_parameter() {
8283

8384
private static class TestBean {
8485

85-
private String field1;
86+
private @Nullable String field1;
8687

87-
private String field2;
88+
private @Nullable String field2;
8889

89-
public String getField1() {
90+
public @Nullable String getField1() {
9091
return field1;
9192
}
9293

9394
@SuppressWarnings("unused")
94-
public void setField1(String field1) {
95+
public void setField1(@Nullable String field1) {
9596
this.field1 = field1;
9697
}
9798

98-
public String getField2() {
99+
public @Nullable String getField2() {
99100
return field2;
100101
}
101102

102103
@SuppressWarnings("unused")
103-
public void setField2(String field2) {
104+
public void setField2(@Nullable String field2) {
104105
this.field2 = field2;
105106
}
106107

spring-batch-notion/src/test/java/org/springframework/batch/extensions/notion/mapping/ConstructorPropertyMapperTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.springframework.batch.extensions.notion.mapping;
1717

18+
import org.jspecify.annotations.Nullable;
1819
import org.junit.jupiter.api.Nested;
1920
import org.junit.jupiter.api.Test;
2021
import org.junit.jupiter.params.ParameterizedTest;
@@ -92,7 +93,7 @@ void should_map_partial_properties(Map<String, String> properties) {
9293
@Nested
9394
class using_record_with_additional_constructors {
9495

95-
private record TestRecord(String field1, String field2) {
96+
private record TestRecord(@Nullable String field1, @Nullable String field2) {
9697

9798
@SuppressWarnings("unused")
9899
private TestRecord() {

spring-batch-notion/src/test/java/org/springframework/batch/extensions/notion/mapping/RecordPropertyMapperTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.springframework.batch.extensions.notion.mapping;
1717

18+
import org.jspecify.annotations.Nullable;
1819
import org.junit.jupiter.api.Nested;
1920
import org.junit.jupiter.api.Test;
2021
import org.junit.jupiter.params.ParameterizedTest;
@@ -92,7 +93,7 @@ void should_map_partial_properties(Map<String, String> properties) {
9293
@Nested
9394
class using_record_with_additional_constructors {
9495

95-
private record TestRecord(String field1, String field2) {
96+
private record TestRecord(@Nullable String field1, @Nullable String field2) {
9697

9798
@SuppressWarnings("unused")
9899
private TestRecord() {

0 commit comments

Comments
 (0)