diff options
author | aclement <aclement> | 2008-05-12 16:52:58 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-12 16:52:58 +0000 |
commit | 0d9e9230519499eef1e1cc3a8d7aec1413e8f8ee (patch) | |
tree | 25eff9209e7b2607d39a7787862b370abd1364f3 /bridge | |
parent | c77010c48ecc1c81fcee006541e452932aee5216 (diff) | |
download | aspectj-0d9e9230519499eef1e1cc3a8d7aec1413e8f8ee.tar.gz aspectj-0d9e9230519499eef1e1cc3a8d7aec1413e8f8ee.zip |
231396: refactoring:
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/src/org/aspectj/bridge/ISourceLocation.java | 5 | ||||
-rw-r--r-- | bridge/src/org/aspectj/bridge/SourceLocation.java | 4 |
2 files changed, 9 insertions, 0 deletions
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 { |