br.com.objectos.lang.ThrowablesJava11 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectos-lang Show documentation
Show all versions of objectos-lang Show documentation
A set of utilities for classes of the java.lang and the java.util packages.
The newest version!
/*
* Copyright 2021 Objectos Software LTDA.
*
* Reprodução parcial ou total proibida.
*/
package br.com.objectos.lang;
import br.com.objectos.multirelease.Singleton;
final class ThrowablesJava11 extends ThrowablesJava7 {
@Singleton.Field
static final Throwables INSTANCE = new ThrowablesJava11();
private ThrowablesJava11() {}
@Override
public final StackTraceElement createStackTraceElement(
String classLoaderName,
String moduleName, String moduleVersion,
String declaringClass, String methodName,
String fileName, int lineNumber) {
return new StackTraceElement(
classLoaderName,
moduleName, moduleVersion,
declaringClass, methodName,
fileName, lineNumber
);
}
@Override
public final String getClassLoaderName(StackTraceElement element) {
return element.getClassLoaderName();
}
@Override
public final String getModuleName(StackTraceElement element) {
return element.getModuleName();
}
@Override
public final String getModuleVersion(StackTraceElement element) {
return element.getModuleVersion();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy