comment some lines
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
public void getDetails(StringBuilder builder) {
|
||||
- if ((this.uncategorizedStackTrace == null || this.uncategorizedStackTrace.length <= 0) && !this.details.isEmpty()) {
|
||||
- this.uncategorizedStackTrace = ArrayUtils.subarray(this.details.get(0).getStacktrace(), 0, 1);
|
||||
+ if ((this.uncategorizedStackTrace == null || this.uncategorizedStackTrace.length == 0) && !this.details.isEmpty()) {
|
||||
+ if ((this.uncategorizedStackTrace == null || this.uncategorizedStackTrace.length == 0) && !this.details.isEmpty()) { // Plazma - Fix IDE warning
|
||||
+ this.uncategorizedStackTrace = ArrayUtils.subarray(this.details.getFirst().getStacktrace(), 0, 1); // Plazma - Use modern method
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
}
|
||||
|
||||
- if (stackTrace != null && 0 <= i1 && i1 < stackTrace.length) {
|
||||
+ if (0 <= i1 && i1 < stackTrace.length) {
|
||||
+ if (0 <= i1 && i1 < stackTrace.length) { // Plazma - Not nullable
|
||||
stackTraceElement = stackTrace[i1];
|
||||
if (stackTrace.length + 1 - i < stackTrace.length) {
|
||||
stackTraceElement1 = stackTrace[stackTrace.length + 1 - i];
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
this.trackingStackTrace = crashReportCategory.validateStackTrace(stackTraceElement, stackTraceElement1);
|
||||
- if (stackTrace != null && stackTrace.length >= i && 0 <= i1 && i1 < stackTrace.length) {
|
||||
+ if (stackTrace.length >= i && 0 <= i1 && i1 < stackTrace.length) {
|
||||
+ if (stackTrace.length >= i && 0 <= i1 && i1 < stackTrace.length) { // Plazma - Not nullable
|
||||
this.uncategorizedStackTrace = new StackTraceElement[i1];
|
||||
System.arraycopy(stackTrace, 0, this.uncategorizedStackTrace, 0, this.uncategorizedStackTrace.length);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user