diff options
author | aclement <aclement> | 2005-11-07 17:29:28 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-07 17:29:28 +0000 |
commit | 67ec9ca9ab089690ab376f1ed75006143f26fb84 (patch) | |
tree | fc8574376e90c06ec249b6707eb9377c35d92f81 /ajdoc/src | |
parent | d67c9bf91013300fc5ade239cdc8e1814ed9b458 (diff) | |
download | aspectj-67ec9ca9ab089690ab376f1ed75006143f26fb84.tar.gz aspectj-67ec9ca9ab089690ab376f1ed75006143f26fb84.zip |
Helens changes to ensure these tidy up after themselves and avoid synchronization being a pain.
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 3 | ||||
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/Main.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java index b43b2c3de..8752d2e24 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java @@ -224,6 +224,9 @@ class HtmlDecorator { file.delete(); FileOutputStream fos = new FileOutputStream( file ); fos.write( fileContents.toString().getBytes() ); + + reader.close(); + fos.close(); } static void addAspectDocumentation(IProgramElement node, StringBuffer fileBuffer, int index ) { diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/Main.java b/ajdoc/src/org/aspectj/tools/ajdoc/Main.java index ed5b04339..6f7226966 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/Main.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/Main.java @@ -275,6 +275,9 @@ public class Main implements Config { } FileOutputStream fos = new FileOutputStream( indexFile ); fos.write( indexFileBuffer.getBytes() ); + + indexFileReader.close(); + fos.close(); } } catch (IOException ioe) { |