16
16
17
17
package org .springframework .boot .data .rest .autoconfigure ;
18
18
19
+ import org .jspecify .annotations .Nullable ;
20
+
19
21
import org .springframework .boot .context .properties .ConfigurationProperties ;
20
22
import org .springframework .boot .context .properties .PropertyMapper ;
21
23
import org .springframework .data .rest .core .config .RepositoryRestConfiguration ;
@@ -34,34 +36,34 @@ public class RepositoryRestProperties {
34
36
/**
35
37
* Base path to be used by Spring Data REST to expose repository resources.
36
38
*/
37
- private String basePath ;
39
+ private @ Nullable String basePath ;
38
40
39
41
/**
40
42
* Default size of pages.
41
43
*/
42
- private Integer defaultPageSize ;
44
+ private @ Nullable Integer defaultPageSize ;
43
45
44
46
/**
45
47
* Maximum size of pages.
46
48
*/
47
- private Integer maxPageSize ;
49
+ private @ Nullable Integer maxPageSize ;
48
50
49
51
/**
50
52
* Name of the URL query string parameter that indicates what page to return.
51
53
*/
52
- private String pageParamName ;
54
+ private @ Nullable String pageParamName ;
53
55
54
56
/**
55
57
* Name of the URL query string parameter that indicates how many results to return at
56
58
* once.
57
59
*/
58
- private String limitParamName ;
60
+ private @ Nullable String limitParamName ;
59
61
60
62
/**
61
63
* Name of the URL query string parameter that indicates what direction to sort
62
64
* results.
63
65
*/
64
- private String sortParamName ;
66
+ private @ Nullable String sortParamName ;
65
67
66
68
/**
67
69
* Strategy to use to determine which repositories get exposed.
@@ -71,69 +73,69 @@ public class RepositoryRestProperties {
71
73
/**
72
74
* Content type to use as a default when none is specified.
73
75
*/
74
- private MediaType defaultMediaType ;
76
+ private @ Nullable MediaType defaultMediaType ;
75
77
76
78
/**
77
79
* Whether to return a response body after creating an entity.
78
80
*/
79
- private Boolean returnBodyOnCreate ;
81
+ private @ Nullable Boolean returnBodyOnCreate ;
80
82
81
83
/**
82
84
* Whether to return a response body after updating an entity.
83
85
*/
84
- private Boolean returnBodyOnUpdate ;
86
+ private @ Nullable Boolean returnBodyOnUpdate ;
85
87
86
88
/**
87
89
* Whether to enable enum value translation through the Spring Data REST default
88
90
* resource bundle.
89
91
*/
90
- private Boolean enableEnumTranslation ;
92
+ private @ Nullable Boolean enableEnumTranslation ;
91
93
92
- public String getBasePath () {
94
+ public @ Nullable String getBasePath () {
93
95
return this .basePath ;
94
96
}
95
97
96
- public void setBasePath (String basePath ) {
98
+ public void setBasePath (@ Nullable String basePath ) {
97
99
this .basePath = basePath ;
98
100
}
99
101
100
- public Integer getDefaultPageSize () {
102
+ public @ Nullable Integer getDefaultPageSize () {
101
103
return this .defaultPageSize ;
102
104
}
103
105
104
- public void setDefaultPageSize (Integer defaultPageSize ) {
106
+ public void setDefaultPageSize (@ Nullable Integer defaultPageSize ) {
105
107
this .defaultPageSize = defaultPageSize ;
106
108
}
107
109
108
- public Integer getMaxPageSize () {
110
+ public @ Nullable Integer getMaxPageSize () {
109
111
return this .maxPageSize ;
110
112
}
111
113
112
- public void setMaxPageSize (Integer maxPageSize ) {
114
+ public void setMaxPageSize (@ Nullable Integer maxPageSize ) {
113
115
this .maxPageSize = maxPageSize ;
114
116
}
115
117
116
- public String getPageParamName () {
118
+ public @ Nullable String getPageParamName () {
117
119
return this .pageParamName ;
118
120
}
119
121
120
- public void setPageParamName (String pageParamName ) {
122
+ public void setPageParamName (@ Nullable String pageParamName ) {
121
123
this .pageParamName = pageParamName ;
122
124
}
123
125
124
- public String getLimitParamName () {
126
+ public @ Nullable String getLimitParamName () {
125
127
return this .limitParamName ;
126
128
}
127
129
128
- public void setLimitParamName (String limitParamName ) {
130
+ public void setLimitParamName (@ Nullable String limitParamName ) {
129
131
this .limitParamName = limitParamName ;
130
132
}
131
133
132
- public String getSortParamName () {
134
+ public @ Nullable String getSortParamName () {
133
135
return this .sortParamName ;
134
136
}
135
137
136
- public void setSortParamName (String sortParamName ) {
138
+ public void setSortParamName (@ Nullable String sortParamName ) {
137
139
this .sortParamName = sortParamName ;
138
140
}
139
141
@@ -145,35 +147,35 @@ public void setDetectionStrategy(RepositoryDetectionStrategies detectionStrategy
145
147
this .detectionStrategy = detectionStrategy ;
146
148
}
147
149
148
- public MediaType getDefaultMediaType () {
150
+ public @ Nullable MediaType getDefaultMediaType () {
149
151
return this .defaultMediaType ;
150
152
}
151
153
152
- public void setDefaultMediaType (MediaType defaultMediaType ) {
154
+ public void setDefaultMediaType (@ Nullable MediaType defaultMediaType ) {
153
155
this .defaultMediaType = defaultMediaType ;
154
156
}
155
157
156
- public Boolean getReturnBodyOnCreate () {
158
+ public @ Nullable Boolean getReturnBodyOnCreate () {
157
159
return this .returnBodyOnCreate ;
158
160
}
159
161
160
- public void setReturnBodyOnCreate (Boolean returnBodyOnCreate ) {
162
+ public void setReturnBodyOnCreate (@ Nullable Boolean returnBodyOnCreate ) {
161
163
this .returnBodyOnCreate = returnBodyOnCreate ;
162
164
}
163
165
164
- public Boolean getReturnBodyOnUpdate () {
166
+ public @ Nullable Boolean getReturnBodyOnUpdate () {
165
167
return this .returnBodyOnUpdate ;
166
168
}
167
169
168
- public void setReturnBodyOnUpdate (Boolean returnBodyOnUpdate ) {
170
+ public void setReturnBodyOnUpdate (@ Nullable Boolean returnBodyOnUpdate ) {
169
171
this .returnBodyOnUpdate = returnBodyOnUpdate ;
170
172
}
171
173
172
- public Boolean getEnableEnumTranslation () {
174
+ public @ Nullable Boolean getEnableEnumTranslation () {
173
175
return this .enableEnumTranslation ;
174
176
}
175
177
176
- public void setEnableEnumTranslation (Boolean enableEnumTranslation ) {
178
+ public void setEnableEnumTranslation (@ Nullable Boolean enableEnumTranslation ) {
177
179
this .enableEnumTranslation = enableEnumTranslation ;
178
180
}
179
181
0 commit comments