Add extra files that should have been included in the previous commit.
[cfb.git] / prod / net / jaekl / cfb / store / Location.java
index 51857eb48c2289ca6aa94991dcec7b2ed4716927..17d081a5ae1ab8f61ef4f2da6801725043e8169e 100644 (file)
@@ -8,6 +8,8 @@ import net.jaekl.cfb.xml.BugMethod;
 import net.jaekl.cfb.xml.SourceLine;
 
 public class Location {
+       public static final String METHOD_CALLED = "METHOD_CALLED";
+       
        Long m_id;
        String m_className;
        String m_methodName;
@@ -55,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) 
        {