diff options
author | mkersten <mkersten> | 2003-08-07 09:16:05 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-08-07 09:16:05 +0000 |
commit | be23e3d01d1acde57b8ae25e04d0fc011a71e219 (patch) | |
tree | 341c6274bc12289cbdf38b54d0d0031fdd816fac /bridge | |
parent | 02d3af8df7b3131a7dd64e5e19e19367e275b0bc (diff) | |
download | aspectj-be23e3d01d1acde57b8ae25e04d0fc011a71e219.tar.gz aspectj-be23e3d01d1acde57b8ae25e04d0fc011a71e219.zip |
Changed org.aspectj.bridge.IMessage.getISourceLocation to getSourceLocation in order to match method naming conventions.
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/src/org/aspectj/bridge/IMessage.java | 2 | ||||
-rw-r--r-- | bridge/src/org/aspectj/bridge/Message.java | 4 | ||||
-rw-r--r-- | bridge/src/org/aspectj/bridge/MessageUtil.java | 4 | ||||
-rw-r--r-- | bridge/testsrc/org/aspectj/bridge/MessageTest.java | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/bridge/src/org/aspectj/bridge/IMessage.java b/bridge/src/org/aspectj/bridge/IMessage.java index 7f7407e0f..fe2a2124d 100644 --- a/bridge/src/org/aspectj/bridge/IMessage.java +++ b/bridge/src/org/aspectj/bridge/IMessage.java @@ -73,7 +73,7 @@ public interface IMessage { Throwable getThrown(); /** @return source location associated with this message, or null if none */ - ISourceLocation getISourceLocation(); + ISourceLocation getSourceLocation(); public static final class Kind implements Comparable { public static final Comparator COMPARATOR = new Comparator() { diff --git a/bridge/src/org/aspectj/bridge/Message.java b/bridge/src/org/aspectj/bridge/Message.java index 56e2275b7..ada78629a 100644 --- a/bridge/src/org/aspectj/bridge/Message.java +++ b/bridge/src/org/aspectj/bridge/Message.java @@ -126,7 +126,7 @@ public class Message implements IMessage { // XXX toString or renderer? } /** @return ISourceLocation associated with this message, or null if none */ - final public ISourceLocation getISourceLocation() { + final public ISourceLocation getSourceLocation() { return sourceLocation; } @@ -135,7 +135,7 @@ public class Message implements IMessage { // XXX toString or renderer? } public static String renderToString(IMessage message) { - ISourceLocation loc = message.getISourceLocation(); + ISourceLocation loc = message.getSourceLocation(); String locString = (null == loc ? "" : " at " + loc); Throwable thrown = message.getThrown(); return message.getKind() + locString + ": " + message.getMessage() diff --git a/bridge/src/org/aspectj/bridge/MessageUtil.java b/bridge/src/org/aspectj/bridge/MessageUtil.java index 31f72ed94..9dbb09e44 100644 --- a/bridge/src/org/aspectj/bridge/MessageUtil.java +++ b/bridge/src/org/aspectj/bridge/MessageUtil.java @@ -770,7 +770,7 @@ public class MessageUtil { result.append(" "); } - ISourceLocation loc = message.getISourceLocation(); + ISourceLocation loc = message.getSourceLocation(); if ((null != loc) && (loc != ISourceLocation.EMPTY)) { result.append("at " + renderSourceLocation(loc)); } @@ -849,7 +849,7 @@ public class MessageUtil { String text = message.getMessage(); Throwable thrown = message.getThrown(); - ISourceLocation sl = message.getISourceLocation(); + ISourceLocation sl = message.getSourceLocation(); IMessage.Kind kind = message.getKind(); StringBuffer result = new StringBuffer(); result.append(kind.toString()); diff --git a/bridge/testsrc/org/aspectj/bridge/MessageTest.java b/bridge/testsrc/org/aspectj/bridge/MessageTest.java index 8688f44b4..19cbc50ef 100644 --- a/bridge/testsrc/org/aspectj/bridge/MessageTest.java +++ b/bridge/testsrc/org/aspectj/bridge/MessageTest.java @@ -223,7 +223,7 @@ public class MessageTest extends TestCase { assertTrue(""+kind, kind == m.getKind()); assertTrue(""+thrown, equals(thrown, m.getThrown())); assertTrue(""+sourceLocation, - equals(sourceLocation, m.getISourceLocation())); + equals(sourceLocation, m.getSourceLocation())); String err = new KindTest().testKindSet(message, kind); if (null != err) { assertTrue(err, false); |