Develop and Download Open Source Software

Browse Subversion Repository

Diff of /exewrap-jetty/trunk/src/main/java/org/eclipse/jetty/util/ManifestUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 97 by hirukawa_ryo, Mon Apr 13 07:14:55 2020 UTC revision 98 by hirukawa_ryo, Wed Oct 21 05:13:50 2020 UTC
# Line 64  public class ManifestUtils Line 64  public class ManifestUtils
64       * @param klass the class of the jar/module to retrieve the version       * @param klass the class of the jar/module to retrieve the version
65       * @return the jar/module version, or an empty Optional       * @return the jar/module version, or an empty Optional
66       */       */
     @SuppressWarnings("unchecked")  
67      public static Optional<String> getVersion(Class<?> klass)      public static Optional<String> getVersion(Class<?> klass)
68      {      {
69          Optional<String> version = getManifest(klass).map(Manifest::getMainAttributes)          Optional<String> version = getManifest(klass).map(Manifest::getMainAttributes)

Legend:
Removed from v.97  
changed lines
  Added in v.98

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26