Update of /cvsroot/sblim/jsr48-client/src/javax/wbem/client
In directory vz-cvs-3.sog:/tmp/cvs-serv15811/src/javax/wbem/client
Modified Files:
Tag: Experimental
WBEMClientFactory.java
Log Message:
3490355 - TCK: Cannot instantiate WBEMClientFactory
Index: WBEMClientFactory.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/javax/wbem/client/WBEMClientFactory.java,v
retrieving revision 1.2.2.7
retrieving revision 1.2.2.8
diff -u -d -r1.2.2.7 -r1.2.2.8
--- WBEMClientFactory.java 26 Feb 2010 02:00:57 -0000 1.2.2.7
+++ WBEMClientFactory.java 21 Feb 2012 23:36:19 -0000 1.2.2.8
@@ -1,5 +1,5 @@
/**
- * (C) Copyright IBM Corp. 2006, 2010
+ * (C) Copyright IBM Corp. 2006, 2012
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
@@ -20,6 +20,7 @@
* 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
* 2882448 2009-10-21 blaschke-oss Add WBEMClientConstants from JSR48
* 2959264 2010-02-25 blaschke-oss Sync up javax.client.* javadoc with JSR48 1.0.0
+ * 3490355 2012-02-21 blaschke-oss TCK: Cannot instantiate WBEMClientFactory
*/
package javax.wbem.client;
@@ -53,19 +54,12 @@
public class WBEMClientFactory extends Object {
- private static String[] cProtocols;
-
- static {
- cProtocols = new String[1];
- cProtocols[0] = WBEMClientConstants.PROTOCOL_CIMXML;
- }
+ private static final String[] cProtocols = { WBEMClientConstants.PROTOCOL_CIMXML };
/**
*
*/
- public WBEMClientFactory() {
- throw new UnsupportedOperationException("WBEMClientFactory cannot be instantiated.");
- }
+ public WBEMClientFactory() { /**/}
/**
* Get a <code>WBEMClient</code> for a protocol.
|