/** * Helper method that will try to load version information for specified * class. Implementation is as follows: * * First, tries to load version info from a class named * "PackageVersion" in the same package as the class. * * If no version information is found, {@link Version#unknownVersion()} is returned. */ public static Version versionFor(Class<?> cls) { Version version = packageVersionFor(cls); return version == null ? Version.unknownVersion() : version; }
/** * Helper method that will try to load version information for specified * class. Implementation is as follows: * * First, tries to load version info from a class named * "PackageVersion" in the same package as the class. * * If no version information is found, {@link Version#unknownVersion()} is returned. */ public static Version versionFor(Class<?> cls) { Version version = packageVersionFor(cls); return version == null ? Version.unknownVersion() : version; }
/** * Helper method that will try to load version information for specified * class. Implementation is as follows: * * First, tries to load version info from a class named * "PackageVersion" in the same package as the class. * * If no version information is found, {@link Version#unknownVersion()} is returned. */ public static Version versionFor(Class<?> cls) { Version version = packageVersionFor(cls); return version == null ? Version.unknownVersion() : version; }
/** * Helper method that will try to load version information for specified * class. Implementation is as follows: * * First, tries to load version info from a class named * "PackageVersion" in the same package as the class. * * If no version information is found, {@link Version#unknownVersion()} is returned. */ public static Version versionFor(Class<?> cls) { Version version = packageVersionFor(cls); return version == null ? Version.unknownVersion() : version; }
public static Version versionFor(Class<?> cls) Version packageVersion = packageVersionFor(cls); if (packageVersion != null) { return packageVersion;
public static Version versionFor(Class<?> cls) Version packageVersion = packageVersionFor(cls); if (packageVersion != null) { return packageVersion;