Changeset 1208


Ignore:
Timestamp:
Jul 12, 2011, 6:27:18 PM (6 years ago)
Author:
stefan
Message:

minor changes

Location:
trunk/tools/src/utils/ic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/src/utils/ic/File.scala

    r1073 r1208  
    3636      StreamUtils.copyStream(in, out)
    3737     
    38       in.close
    39       out.close
     38      in.close()
     39      out.close()
    4040    }
    4141
     
    6464     */
    6565    def getContent: String = {
    66       new FileInputStream(file).getContent()
     66      new FileInputStream(file).getContent
    6767    }
    6868
  • trunk/tools/src/utils/ic/InputStream.scala

    r1073 r1208  
    3636      val out = new FileOutputStream(file)
    3737      writeTo(out)
    38       out.close
     38      out.close()
    3939    }
    4040
     
    4646      val out = new FileOutputStream(file)
    4747      writeLinewiseTo(out)
    48       out.close
     48      out.close()
    4949    }
    5050
     
    5252     * Returns the content of the input stream as String.
    5353     */
    54     def getContent () = {
     54    def getContent = {
    5555      val out = new ByteArrayOutputStream()
    5656
    5757      StreamUtils.copyStream(in, out)
    5858
    59       in.close
    60       out.close
     59      in.close()
     60      out.close()
    6161
    6262      new String(out.toByteArray)
Note: See TracChangeset for help on using the changeset viewer.