mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-01-04 15:17:50 +01:00
Improve code readability
This commit is contained in:
parent
a1d21e8754
commit
52172d8dd2
@ -50,12 +50,10 @@ public class ReflectionUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (!stackTraceError) {
|
|
||||||
ConsoleLogger.log(Level.WARNING, "Unable to get a stack trace element, please inform the developer. You will only see this error once and a fallback method will be used.", t);
|
ConsoleLogger.log(Level.WARNING, "Unable to get a stack trace element, please inform the developer. You will only see this error once and a fallback method will be used.", t);
|
||||||
stackTraceError = true;
|
stackTraceError = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Fallback slower method, generates the full stack trace (it should never be called if everything works as expected)
|
// Fallback slower method, generates the full stack trace (it should never be called if everything works as expected)
|
||||||
StackTraceElement[] fullStackTrace = new Throwable().getStackTrace();
|
StackTraceElement[] fullStackTrace = new Throwable().getStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user