|
From: Michael R. <mr...@us...> - 2004-08-10 13:28:51
|
Update of /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/poa/DefaultServant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7788/src/examples/org/openorb/orb/examples/poa/DefaultServant Modified Files: Client.java FileDescriptor.java FileSystem.java Server.java Log Message: Fixed the remaining checkstyle warnings Index: Client.java =================================================================== RCS file: /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/poa/DefaultServant/Client.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Client.java 16 Feb 2004 09:41:56 -0000 1.2 +++ Client.java 10 Aug 2004 13:28:40 -0000 1.3 @@ -8,8 +8,13 @@ package org.openorb.orb.examples.poa.DefaultServant; -public class Client +public final class Client { + // do not instantiate + private Client() + { + } + public static void main( String[] args ) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init( args, null ); Index: FileDescriptor.java =================================================================== RCS file: /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/poa/DefaultServant/FileDescriptor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- FileDescriptor.java 16 Feb 2004 09:41:56 -0000 1.2 +++ FileDescriptor.java 10 Aug 2004 13:28:40 -0000 1.3 @@ -41,7 +41,7 @@ System.exit( 1 ); } String id = new String( oid ); - int num = new Integer( id ).intValue(); + int num = Integer.parseInt( id ); return ( DataInputStream ) FileSystem.getList().elementAt( num - 1 ); } Index: FileSystem.java =================================================================== RCS file: /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/poa/DefaultServant/FileSystem.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- FileSystem.java 16 Feb 2004 09:41:56 -0000 1.2 +++ FileSystem.java 10 Aug 2004 13:28:40 -0000 1.3 @@ -56,7 +56,7 @@ return null; } s_list.addElement ( file ); - byte[] oid = ( new String( new Integer( s_list.size() ).toString() ) ).getBytes(); + byte[] oid = ( new String( "" + s_list.size() ) ).getBytes(); obj = m_poa.create_reference_with_id( oid, "IDL:IFileDescriptor:1.0" ); return IFileDescriptorHelper.narrow( obj ); } Index: Server.java =================================================================== RCS file: /cvsroot/openorb/OpenORB/src/examples/org/openorb/orb/examples/poa/DefaultServant/Server.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Server.java 16 Feb 2004 09:41:56 -0000 1.2 +++ Server.java 10 Aug 2004 13:28:40 -0000 1.3 @@ -8,8 +8,13 @@ package org.openorb.orb.examples.poa.DefaultServant; -public class Server +public final class Server { + // do not instantiate + private Server() + { + } + public static void main( String[] args ) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init( args, null ); |