Changeset 12512


Ignore:
Timestamp:
02/28/10 15:54:17 (12 years ago)
Author:
vvoutilainen
Message:

Make Condition.writeToString() final, add documentation to
Condition.getMessage(), fix remaining overrides of Condition.writeToString()
to override Condition.getMessage() instead.

Location:
trunk/abcl/src/org/armedbear/lisp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/CellError.java

    r12288 r12512  
    9999
    100100    @Override
    101     public String writeToString()
     101    public String getMessage()
    102102    {
    103103        if (Symbol.PRINT_ESCAPE.symbolValue() == NIL)
    104             return super.writeToString();
     104            return super.getMessage();
    105105        StringBuffer sb = new StringBuffer(typeOf().writeToString());
    106106        sb.append(' ');
  • trunk/abcl/src/org/armedbear/lisp/Condition.java

    r12481 r12512  
    130130  }
    131131
     132  /**
     133   * Extending classes should override this method if they want to
     134   * customize how they will be printed.
     135   */
    132136  public String getMessage()
    133137  {
    134     return message;
     138    return getFormatControl().toString();
    135139  }
    136140
     
    177181
    178182  @Override
    179   public String writeToString()
     183  public final String writeToString()
    180184  {
    181185    final LispThread thread = LispThread.currentThread();
  • trunk/abcl/src/org/armedbear/lisp/EndOfFile.java

    r12288 r12512  
    7373
    7474    @Override
    75     public String writeToString()
     75    public String getMessage()
    7676    {
    7777        return unreadableString(Symbol.END_OF_FILE);
Note: See TracChangeset for help on using the changeset viewer.