Changeset 34


Ignore:
Timestamp:
10/03/02 15:23:55 (20 years ago)
Author:
piso
Message:

Synchronization.

Location:
trunk/j/src/org/armedbear/j
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/AbstractLine.java

    r2 r34  
    3030    private Annotation annotation;
    3131
    32     public final Line previous()
     32    public final synchronized Line previous()
    3333    {
    3434        return prev;
    3535    }
    3636
    37     public final void setPrevious(Line line)
     37    public final synchronized void setPrevious(Line line)
    3838    {
    3939        prev = line;
    4040    }
    4141
    42     public final Line next()
     42    public final synchronized Line next()
    4343    {
    4444        return next;
    4545    }
    4646
    47     public final void setNext(Line line)
     47    public final synchronized void setNext(Line line)
    4848    {
    4949        next = line;
    5050    }
    5151
    52     public final void insertAfter(Line line)
     52    public final synchronized void insertAfter(Line line)
    5353    {
    5454        if (line != null) {
     
    6363    }
    6464
    65     public final int lineNumber()
     65    public final synchronized int lineNumber()
    6666    {
    6767        return lineNumber;
    6868    }
    6969
    70     public final void setLineNumber(int n)
     70    public final synchronized void setLineNumber(int n)
    7171    {
    7272        lineNumber = n;
    7373    }
    7474
    75     public final int originalLineNumber()
     75    public final synchronized int originalLineNumber()
    7676    {
    7777        return originalLineNumber;
    7878    }
    7979
    80     public final void setOriginalLineNumber(int n)
     80    public final synchronized void setOriginalLineNumber(int n)
    8181    {
    8282        originalLineNumber = n;
     
    192192    }
    193193
    194     public final Line previousVisible()
     194    public final synchronized Line previousVisible()
    195195    {
    196196        Line line = previous();
     
    200200    }
    201201
    202     public final Line nextVisible()
     202    public final synchronized Line nextVisible()
    203203    {
    204204        Line line = next();
  • trunk/j/src/org/armedbear/j/TextLine.java

    r33 r34  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: TextLine.java,v 1.2 2002-10-03 14:59:38 piso Exp $
     5 * $Id: TextLine.java,v 1.3 2002-10-03 15:23:55 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    4848    }
    4949
    50     public final int flags()
     50    public final synchronized int flags()
    5151    {
    5252        return flags;
    5353    }
    5454
    55     public final void setFlags(int flags)
     55    public final synchronized void setFlags(int flags)
    5656    {
    5757        this.flags = flags;
    5858    }
    5959
    60     public final String getText()
     60    public final synchronized String getText()
    6161    {
    6262        return text != null ? text : "";
    6363    }
    6464
    65     public final void setText(String s)
     65    public final synchronized void setText(String s)
    6666    {
    6767        if (originalText == null)
Note: See TracChangeset for help on using the changeset viewer.