All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.lang.ThrowablesJava11 Maven / Gradle / Ivy

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