This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit 1be3defecebf8d634d5fa20de5f632baa2925ba7 Author: Gary Gregory <[email protected]> AuthorDate: Sun Jun 16 13:06:32 2024 -0400 Use an import instead of FQCN --- src/main/java/org/apache/commons/net/examples/ntp/NTPClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/net/examples/ntp/NTPClient.java b/src/main/java/org/apache/commons/net/examples/ntp/NTPClient.java index 491cc4d9..1eb790c1 100644 --- a/src/main/java/org/apache/commons/net/examples/ntp/NTPClient.java +++ b/src/main/java/org/apache/commons/net/examples/ntp/NTPClient.java @@ -21,6 +21,7 @@ import java.io.IOException; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostException; +import java.text.DecimalFormat; import java.text.NumberFormat; import java.time.Duration; import java.util.Objects; @@ -45,7 +46,7 @@ import org.apache.commons.net.ntp.TimeStamp; public final class NTPClient { private static final String OWN_CLOCK_IP_ADDRESS = "127.127.1.0"; - private static final NumberFormat numberFormat = new java.text.DecimalFormat("0.00"); + private static final NumberFormat numberFormat = new DecimalFormat("0.00"); public static void main(final String[] args) { if (args.length == 0) {
