From 4d97f5ee18af1d22be60e79315212197fec77315 Mon Sep 17 00:00:00 2001 From: Frank Maritato Date: Fri, 25 Jun 2010 18:39:32 +0000 Subject: [PATCH] replaced another system.err.println git-svn-id: https://lwes.svn.sourceforge.net/svnroot/lwes/lwes-java/trunk@499 a2f82657-cdd2-4550-bd36-68a8e7111808 --- src/main/java/org/lwes/util/IPAddress.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/lwes/util/IPAddress.java b/src/main/java/org/lwes/util/IPAddress.java index 98bd4b4..8f0e720 100644 --- a/src/main/java/org/lwes/util/IPAddress.java +++ b/src/main/java/org/lwes/util/IPAddress.java @@ -1,5 +1,9 @@ package org.lwes.util; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import java.io.Serializable; import java.net.InetAddress; import java.net.UnknownHostException; @@ -7,10 +11,12 @@ import java.net.UnknownHostException; * This is a wrapper class for InetAddress, which allows the setting of * an InetAddress with a byte arrays. As well as other useful functions. * - * @deprecated + * @deprecated * @author Anthony Molinaro */ -public class IPAddress implements java.io.Serializable { +public class IPAddress implements Serializable { + private static transient Log log = LogFactory.getLog(IPAddress.class); + /* serializable UID */ static final long serialVersionUID = -1; @@ -61,7 +67,7 @@ public class IPAddress implements java.io.Serializable { */ public IPAddress(byte[] anIPAddress) { if (anIPAddress.length != 4) { - System.err.println("ERROR : bad inet addr\n"); + log.error("ERROR : bad inet addr\n"); throw new RuntimeException("Bad inet address"); } inet_addr = anIPAddress; -- 2.11.4.GIT