From: aclement Date: Mon, 12 May 2008 16:52:58 +0000 (+0000) Subject: 231396: refactoring: X-Git-Tag: V1_6_1x~44 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0d9e9230519499eef1e1cc3a8d7aec1413e8f8ee;p=aspectj.git 231396: refactoring: --- diff --git a/bridge/src/org/aspectj/bridge/ISourceLocation.java b/bridge/src/org/aspectj/bridge/ISourceLocation.java index 7dab3ea88..502db15a7 100644 --- a/bridge/src/org/aspectj/bridge/ISourceLocation.java +++ b/bridge/src/org/aspectj/bridge/ISourceLocation.java @@ -19,6 +19,11 @@ import java.io.File; /** * Represent source location as a starting line/column and ending * line in a source file. + * Implementations should be immutable. XXX why? + * @see org.aspectj.lang.reflect.SourceLocation + * @see org.aspectj.compiler.base.parser.SourceInfo + * @see org.aspectj.tools.ide.SourceLine + * @see org.aspectj.testing.harness.ErrorLine */ public interface ISourceLocation { static final int MAX_LINE = Integer.MAX_VALUE / 2; diff --git a/bridge/src/org/aspectj/bridge/SourceLocation.java b/bridge/src/org/aspectj/bridge/SourceLocation.java index e815c3edb..e68a45f89 100644 --- a/bridge/src/org/aspectj/bridge/SourceLocation.java +++ b/bridge/src/org/aspectj/bridge/SourceLocation.java @@ -22,6 +22,10 @@ import org.aspectj.util.LangUtil; * Immutable source location. * This guarantees that the source file is not null * and that the numeric values are positive and line <= endLine. + * @see org.aspectj.lang.reflect.SourceLocation + * @see org.aspectj.compiler.base.parser.SourceInfo + * @see org.aspectj.tools.ide.SourceLine + * @see org.aspectj.testing.harness.ErrorLine */ public class SourceLocation implements ISourceLocation, java.io.Serializable {