fix bug equality
This commit is contained in:
parent
e7ffc7bdc1
commit
60b149e301
3 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@ public class App {
|
|||
public App(@NonNull String name, @NonNull User reporter) {
|
||||
this.name = name;
|
||||
this.reporter = reporter;
|
||||
this.configuration = new Configuration();
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
|
|
|
@ -110,7 +110,7 @@ public class PropertiesTab implements MyTabSheet.Tab {
|
|||
if (stacktrace.equals(report.getBug().getStacktrace())) {
|
||||
bug = report.getBug();
|
||||
} else {
|
||||
bug = new Bug(app, stacktrace, report.getVersionCode(), report.getDate());
|
||||
bug = bugRepository.save(new Bug(app, stacktrace, report.getVersionCode(), report.getDate()));
|
||||
}
|
||||
}
|
||||
report.setBug(bug);
|
||||
|
|
|
@ -60,7 +60,7 @@ public final class Utils {
|
|||
StringBuilder output = new StringBuilder();
|
||||
Pattern headLinePattern = Pattern.compile("^([\\w.]+)(:(.*))?$");
|
||||
Pattern tracePattern = Pattern.compile("^\\s*at\\s+([\\w.$_]+)\\.([\\w$_]+)\\((.*)\\)$");
|
||||
Pattern sourcePattern = Pattern.compile("^(android\\..*:)(\\d+)$");
|
||||
Pattern sourcePattern = Pattern.compile("^((android|java)\\..*:)(\\d+)$");
|
||||
Pattern instancePattern = Pattern.compile("(([a-z_$][a-z0-9_$]*\\.)+[a-zA-Z_$][a-zA-Z0-9_$]*@)([a-fA-F0-9]+)");
|
||||
while (lines.size() > 0) {
|
||||
String line;
|
||||
|
|
Loading…
Reference in a new issue