Package net.pterodactylus.util.version

Examples of net.pterodactylus.util.version.Version.compareTo()


    }
    if ((version == null) || (releaseTime == 0)) {
      logger.log(Level.INFO, "Could not parse data from properties.");
      return;
    }
    if (version.compareTo(currentLatestVersion) > 0) {
      currentLatestVersion = version;
      latestVersionDate = releaseTime;
      logger.log(Level.INFO, String.format("Found new version: %s (%tc)", version, new Date(releaseTime)));
      eventBus.post(new UpdateFoundEvent(version, releaseTime, edition));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.