X-Git-Url: http://jaekl.net/gitweb/?a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FLocation.java;h=17d081a5ae1ab8f61ef4f2da6801725043e8169e;hb=5ea506df00f2518856a314665d5af11d4581d26d;hp=d4d1972dbcb7bb55e6d1c75ff9006a935ab70621;hpb=4ba1c41e8a698ed67e8f262412e1fef7a09c5d17;p=cfb.git diff --git a/prod/net/jaekl/cfb/store/Location.java b/prod/net/jaekl/cfb/store/Location.java index d4d1972..17d081a 100644 --- a/prod/net/jaekl/cfb/store/Location.java +++ b/prod/net/jaekl/cfb/store/Location.java @@ -8,7 +8,7 @@ import net.jaekl.cfb.xml.BugMethod; import net.jaekl.cfb.xml.SourceLine; public class Location { - public static String METHOD_CALLED = "METHOD_CALLED"; + public static final String METHOD_CALLED = "METHOD_CALLED"; Long m_id; String m_className; @@ -57,8 +57,8 @@ public class Location { public String getClassName() { return m_className; } public String getMethodName() { return m_methodName; } public String getMethodRole() { return m_methodRole; } - public int getStart() { return m_startLine; } - public int getEnd() { return m_endLine; } + public int getStart() { return (null == m_startLine) ? (-1) : m_startLine.intValue(); } + public int getEnd() { return (null == m_endLine) ? (-1) : m_endLine.intValue(); } public void dump(PrintWriter pw, int indent) {