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) {
|
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() {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue