From c3ca0a22fb4d30bab2d858fb0a3552943fd547f2 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 24 Jul 2005 18:24:20 +0000 Subject: [PATCH] use auto-format printf --- bindings/java/src/net/hyperic/sigar/cmd/Netstat.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Netstat.java b/bindings/java/src/net/hyperic/sigar/cmd/Netstat.java index 98ff4ae2..1483c7b3 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Netstat.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Netstat.java @@ -17,9 +17,6 @@ public class Netstat extends SigarCommandBase { private static final int LADDR_LEN = 20; private static final int RADDR_LEN = 35; - private static final String OUTPUT_FORMAT = - "%-5s %-" + LADDR_LEN + "s %-" + RADDR_LEN + "s %s"; - private static final String[] HEADER = new String[] { "Proto", "Local Address", @@ -31,12 +28,10 @@ public class Netstat extends SigarCommandBase { public Netstat(Shell shell) { super(shell); - setOutputFormat(OUTPUT_FORMAT); } public Netstat() { super(); - setOutputFormat(OUTPUT_FORMAT); } protected boolean validateArgs(String[] args) {