langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/comp/SmartWriter.java
changeset 26107 a4a156a33c94
parent 26098 32588700060b
parent 25874 83c19f00452c
child 34752 9c262a013456
equal deleted inserted replaced
25876:d06a6d3c66c0 26107:a4a156a33c94
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    32  * then it will compare the cached data with the old_content string.
    32  * then it will compare the cached data with the old_content string.
    33  * If different, then it will write all the new content to the file.
    33  * If different, then it will write all the new content to the file.
    34  * If not, the file is not touched.
    34  * If not, the file is not touched.
    35  *
    35  *
    36  *  <p><b>This is NOT part of any supported API.
    36  *  <p><b>This is NOT part of any supported API.
    37  * If you write code that depends on this, you do so at your own
    37  *  If you write code that depends on this, you do so at your own risk.
    38  * risk.  This code and its internal interfaces are subject to change
    38  *  This code and its internal interfaces are subject to change or
    39  * or deletion without notice.</b></p>
    39  *  deletion without notice.</b>
    40  */
    40  */
    41 public class SmartWriter extends Writer {
    41 public class SmartWriter extends Writer {
    42 
    42 
    43     String name;
    43     String name;
    44     JavaFileObject file;
    44     JavaFileObject file;