From 12c2ca81edccfdb8356f21ff231816b0338179ee Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Thu, 10 Feb 2011 00:17:18 +0100 Subject: Improve code: fix some violations --- sonar-plugin-api/src/main/java/org/sonar/api/utils/TempFileUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/TempFileUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/TempFileUtils.java index fc2a2401191..e30a69a9594 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/TempFileUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/TempFileUtils.java @@ -34,7 +34,9 @@ public final class TempFileUtils { *
    *
  1. deleteOnExit() only deletes for normal JVM shutdowns, not crashes or killing the JVM process
  2. *
  3. deleteOnExit() only deletes on JVM shutdown - not good for long running server processes because 3 :
  4. - *
  5. The most evil of all - deleteOnExit() consumes memory for each temp file entry. If your process is running for months, or creates a lot of temp files in a short time, you consume memory and never release it until the JVM shuts down.
  6. + *
  7. The most evil of all - deleteOnExit() consumes memory for each temp file entry. If your process is running for months, + * or creates a lot of temp files in a short time, you consume memory and never release it until the JVM + * shuts down.
  8. *
*/ public static File createTempDirectory() throws IOException { -- cgit v1.2.3