File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
src/java.base/share/classes/sun/nio/cs Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -151,19 +151,15 @@ public void write(CharBuffer cb) throws IOException {
151151 }
152152
153153 public Writer append (CharSequence csq ) throws IOException {
154- synchronized (lock ) {
155- if (csq == null ) csq = "null" ;
156- implWrite (csq , 0 , csq .length ());
157- return this ;
158- }
154+ if (csq == null ) csq = "null" ;
155+ implWrite (csq , 0 , csq .length ());
156+ return this ;
159157 }
160158
161159 public Writer append (CharSequence csq , int start , int end ) throws IOException {
162- synchronized (lock ) {
163- if (csq == null ) csq = "null" ;
164- implWrite (csq , start , end - start );
165- return this ;
166- }
160+ if (csq == null ) csq = "null" ;
161+ implWrite (csq , start , end - start );
162+ return this ;
167163 }
168164
169165 public void flush () throws IOException {
You can’t perform that action at this time.
0 commit comments