fix bug equality

This commit is contained in:
f43nd1r 2018-01-25 02:44:02 +01:00
parent e7ffc7bdc1
commit 60b149e301
3 changed files with 3 additions and 2 deletions

View file

@ -36,6 +36,7 @@ public class App {
public App(@NonNull String name, @NonNull User reporter) { public App(@NonNull String name, @NonNull User reporter) {
this.name = name; this.name = name;
this.reporter = reporter; this.reporter = reporter;
this.configuration = new Configuration();
} }
public int getId() { public int getId() {

View file

@ -110,7 +110,7 @@ public class PropertiesTab implements MyTabSheet.Tab {
if (stacktrace.equals(report.getBug().getStacktrace())) { if (stacktrace.equals(report.getBug().getStacktrace())) {
bug = report.getBug(); bug = report.getBug();
} else { } else {
bug = new Bug(app, stacktrace, report.getVersionCode(), report.getDate()); bug = bugRepository.save(new Bug(app, stacktrace, report.getVersionCode(), report.getDate()));
} }
} }
report.setBug(bug); report.setBug(bug);

View file

@ -60,7 +60,7 @@ public final class Utils {
StringBuilder output = new StringBuilder(); StringBuilder output = new StringBuilder();
Pattern headLinePattern = Pattern.compile("^([\\w.]+)(:(.*))?$"); Pattern headLinePattern = Pattern.compile("^([\\w.]+)(:(.*))?$");
Pattern tracePattern = Pattern.compile("^\\s*at\\s+([\\w.$_]+)\\.([\\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]+)"); Pattern instancePattern = Pattern.compile("(([a-z_$][a-z0-9_$]*\\.)+[a-zA-Z_$][a-zA-Z0-9_$]*@)([a-fA-F0-9]+)");
while (lines.size() > 0) { while (lines.size() > 0) {
String line; String line;