コード例 #1
0
 /**
  * Returns the current platform for the AWS SDK in which this class is running. Version
  * information is obtained from from the versionInfo.properties file which the AWS Java SDK build
  * process generates.
  *
  * @return The current platform for the AWS SDK, if known, otherwise returns a string indicating
  *     that the platform information is not available.
  */
 public static String getPlatform() {
   if (platform == null) {
     synchronized (VersionInfoUtils.class) {
       if (platform == null) initializeVersion();
     }
   }
   return platform;
 }
コード例 #2
0
 /**
  * Returns the current version for the AWS SDK in which this class is running. Version information
  * is obtained from from the versionInfo.properties file which the AWS Java SDK build process
  * generates.
  *
  * @return The current version for the AWS SDK, if known, otherwise returns a string indicating
  *     that the version information is not available.
  */
 public static String getVersion() {
   if (version == null) {
     synchronized (VersionInfoUtils.class) {
       if (version == null) initializeVersion();
     }
   }
   return version;
 }