30
30
import java .util .Set ;
31
31
import java .util .TreeSet ;
32
32
33
- import org .springframework .lang .Nullable ;
34
-
35
33
/**
36
34
* Specialization of {@link Properties} that sorts properties alphanumerically
37
35
* based on their keys.
@@ -87,7 +85,7 @@ class SortedProperties extends Properties {
87
85
88
86
89
87
@ Override
90
- public void store (OutputStream out , @ Nullable String comments ) throws IOException {
88
+ public void store (OutputStream out , String comments ) throws IOException {
91
89
ByteArrayOutputStream baos = new ByteArrayOutputStream ();
92
90
super .store (baos , (this .omitComments ? null : comments ));
93
91
String contents = new String (baos .toByteArray (), StandardCharsets .ISO_8859_1 );
@@ -99,7 +97,7 @@ public void store(OutputStream out, @Nullable String comments) throws IOExceptio
99
97
}
100
98
101
99
@ Override
102
- public void store (Writer writer , @ Nullable String comments ) throws IOException {
100
+ public void store (Writer writer , String comments ) throws IOException {
103
101
StringWriter stringWriter = new StringWriter ();
104
102
super .store (stringWriter , (this .omitComments ? null : comments ));
105
103
String contents = stringWriter .toString ();
@@ -111,12 +109,12 @@ public void store(Writer writer, @Nullable String comments) throws IOException {
111
109
}
112
110
113
111
@ Override
114
- public void storeToXML (OutputStream out , @ Nullable String comments ) throws IOException {
112
+ public void storeToXML (OutputStream out , String comments ) throws IOException {
115
113
super .storeToXML (out , (this .omitComments ? null : comments ));
116
114
}
117
115
118
116
@ Override
119
- public void storeToXML (OutputStream out , @ Nullable String comments , String encoding ) throws IOException {
117
+ public void storeToXML (OutputStream out , String comments , String encoding ) throws IOException {
120
118
super .storeToXML (out , (this .omitComments ? null : comments ), encoding );
121
119
}
122
120
0 commit comments