[Fb-contrib-commit] SF.net SVN: fb-contrib:[1467] trunk/fb-contrib/samples/MDM_Sample.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-11 03:41:32
|
Revision: 1467
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1467&view=rev
Author: dbrosius
Date: 2010-01-11 03:41:24 +0000 (Mon, 11 Jan 2010)
Log Message:
-----------
remove warnings
Modified Paths:
--------------
trunk/fb-contrib/samples/MDM_Sample.java
Modified: trunk/fb-contrib/samples/MDM_Sample.java
===================================================================
--- trunk/fb-contrib/samples/MDM_Sample.java 2010-01-11 03:38:21 UTC (rev 1466)
+++ trunk/fb-contrib/samples/MDM_Sample.java 2010-01-11 03:41:24 UTC (rev 1467)
@@ -34,6 +34,10 @@
{ // Socket tests
InetAddress localhost = InetAddress.getLocalHost(); // WARNING
+ if (localhost == null)
+ {
+ localhost = InetAddress.getByName("booya");
+ }
ServerSocket ss = new ServerSocket(0); touch(ss); // WARNING
ss = new ServerSocket(0,0); touch(ss); // WARNING
ServerSocketFactory ssf = SSLServerSocketFactory.getDefault();
@@ -84,6 +88,7 @@
{ // String tests
byte[] bytes = "".getBytes(); // WARNING
String s = new String(bytes); // WARNING
+ bytes = s.getBytes("UTF-8");
Locale.setDefault(Locale.ENGLISH); // WARNING
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|