src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java

changeset 1138
7375d4979bd3
parent 581
f2fdd52e4e87
child 1280
5c0b3faeb0b0
     1.1 --- a/src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java	Mon Nov 14 08:09:47 2011 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java	Mon Nov 14 15:11:10 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -32,6 +32,7 @@
    1.11  import javax.tools.JavaFileObject;
    1.12  
    1.13  import com.sun.tools.javac.file.JavacFileManager;
    1.14 +import com.sun.tools.javac.parser.EndPosTable;
    1.15  import com.sun.tools.javac.tree.JCTree;
    1.16  
    1.17  import static com.sun.tools.javac.util.LayoutCharacters.*;
    1.18 @@ -128,11 +129,11 @@
    1.19          }
    1.20      }
    1.21  
    1.22 -    public Map<JCTree, Integer> getEndPosTable() {
    1.23 +    public EndPosTable getEndPosTable() {
    1.24          return endPosTable;
    1.25      }
    1.26  
    1.27 -    public void setEndPosTable(Map<JCTree, Integer> t) {
    1.28 +    public void setEndPosTable(EndPosTable t) {
    1.29          if (endPosTable != null && endPosTable != t)
    1.30              throw new IllegalStateException("endPosTable already set");
    1.31          endPosTable = t;
    1.32 @@ -199,7 +200,7 @@
    1.33      /** The underlying file object. */
    1.34      protected JavaFileObject fileObject;
    1.35  
    1.36 -    protected Map<JCTree, Integer> endPosTable;
    1.37 +    protected EndPosTable endPosTable;
    1.38  
    1.39      /** A soft reference to the content of the file object. */
    1.40      protected SoftReference<char[]> refBuf;

mercurial