File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/jdk.compiler/share/classes/com/sun/tools/javac/processing Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2005, 2018 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2005, 2020 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -275,6 +275,13 @@ private class FilerOutputStream extends FilterOutputStream {
275
275
this .fileObject = fileObject ;
276
276
}
277
277
278
+ @ Override
279
+ public void write (byte b [], int off , int len ) throws IOException {
280
+ Objects .checkFromIndexSize (off , len , b .length );
281
+ out .write (b , off , len );
282
+ }
283
+
284
+ @ Override
278
285
public synchronized void close () throws IOException {
279
286
if (!closed ) {
280
287
closed = true ;
@@ -312,6 +319,7 @@ private class FilerWriter extends FilterWriter {
312
319
this .fileObject = fileObject ;
313
320
}
314
321
322
+ @ Override
315
323
public synchronized void close () throws IOException {
316
324
if (!closed ) {
317
325
closed = true ;
You can’t perform that action at this time.
0 commit comments