@Nonnull
    public static String getVersionInfo() {
        Package pkg = JmxTransAgent.class.getPackage();
        if (pkg == null) {
            return "jmxtrans-agent";
        } else {
            return pkg.getImplementationTitle() + ": " + pkg.getImplementationVersion();
        }
    }
@Nonnull
    public static String getVersionInfo() {
        Package pkg = JmxTransAgent.class.getPackage();
        if (pkg == null) {
            return "jmxtrans-agent";
        } else {
            return pkg.getImplementationTitle() + ": " + pkg.getImplementationVersion();
        }
    }
@ Nonnull public static String getVersionInfo ( ) { Package pkg = JmxTransAgent . class . getPackage ( ) ; if ( pkg == null ) { return "jmxtrans-agent" ; } else { return pkg . getImplementationTitle ( ) + ": " + pkg . getImplementationVersion ( ) ; } }
Human readable name and version.

@return project name and version or "{@code jmxtrans-agent}" if package information not found
Human readable name and version .