projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ability to load previously found bugs back out of the database.
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
store
/
Location.java
diff --git
a/prod/net/jaekl/cfb/store/Location.java
b/prod/net/jaekl/cfb/store/Location.java
index 1ffc7322522635999440f45ce8a10920884173f1..8755fe6cc5945a7e18d298f6bb3f09bcad450de5 100644
(file)
--- a/
prod/net/jaekl/cfb/store/Location.java
+++ b/
prod/net/jaekl/cfb/store/Location.java
@@
-5,6
+5,7
@@
import net.jaekl.cfb.xml.BugMethod;
import net.jaekl.cfb.xml.SourceLine;
public class Location {
import net.jaekl.cfb.xml.SourceLine;
public class Location {
+ Long m_id;
String m_className;
String m_methodName;
String m_methodRole;
String m_className;
String m_methodName;
String m_methodRole;
@@
-38,6
+39,11
@@
public class Location {
m_className = bugClass.getClassName();
}
m_className = bugClass.getClassName();
}
+ public Location(Long id, String className, String methodName, String methodRole, long startLine, long endLine)
+ {
+
+ }
+
public String getClassName() { return m_className; }
public String getMethodName() { return m_methodName; }
public String getMethodRole() { return m_methodRole; }
public String getClassName() { return m_className; }
public String getMethodName() { return m_methodName; }
public String getMethodRole() { return m_methodRole; }
@@
-51,13
+57,19
@@
public class Location {
init(sourceLines[0]);
}
}
init(sourceLines[0]);
}
}
+
+ private void init(SourceLine sourceLine)
+ {
+ init(sourceLine.getClassName(), sourceLine.getStart(), sourceLine.getEnd());
+ }
- private void init(S
ourceLine source
Line)
+ private void init(S
tring className, int startLine, int end
Line)
{
{
- m_className = sourceLine.getClassName();
+ m_id = null;
+ m_className = className;
m_methodName = null;
m_methodRole = null;
m_methodName = null;
m_methodRole = null;
- m_startLine = s
ourceLine.getStart()
;
- m_endLine =
sourceLine.getEnd()
;
+ m_startLine = s
tartLine
;
+ m_endLine =
endLine
;
}
}
}
}