summaryrefslogtreecommitdiff
path: root/ridljar/com/sun/star/uno/Type.java
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-02-26 12:40:24 +0000
committerKurt Zenker <kz@openoffice.org>2004-02-26 12:40:24 +0000
commita62beb08abb8ad29f7fe5d3e08bb8805d60173ad (patch)
tree85e449eb55d7123b437735ee7e5fcfc557a4047b /ridljar/com/sun/star/uno/Type.java
parent031bcace66873a93034aeb79556ec12ecb39d3f3 (diff)
INTEGRATION: CWS sb13 (1.12.18); FILE MERGED
2004/02/05 09:27:26 sb 1.12.18.1: #114964# Deprecated Type(String) ctor.
Diffstat (limited to 'ridljar/com/sun/star/uno/Type.java')
-rw-r--r--ridljar/com/sun/star/uno/Type.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/ridljar/com/sun/star/uno/Type.java b/ridljar/com/sun/star/uno/Type.java
index 34b83475bb7e..96ab81c003ed 100644
--- a/ridljar/com/sun/star/uno/Type.java
+++ b/ridljar/com/sun/star/uno/Type.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Type.java,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: hr $ $Date: 2004-02-03 13:25:41 $
+ * last change: $Author: kz $ $Date: 2004-02-26 13:40:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -361,11 +361,6 @@ public class Type {
/**
* Constructs a new <code>Type</code> with the given type name.
*
- * <p>TODO: This constructor is dangerous, as it can create a
- * <code>Type</code> with an <code>UNKNOWN</code> type class. It would be
- * better if this constructor threw a <code>IllegalArgumentException</code>
- * instead.</p>
- *
* @param typeName the name of this type; must not be <code>null</code>.
* For simple types (<code>VOID</code>, <code>BOOLEAN</code>,
* <code>CHAR</code>, <code>BYTE</code>, <code>SHORT</code>,
@@ -376,6 +371,12 @@ public class Type {
* for other types, the type class is set to <code>UNKNOWN</code>.
*
* @since UDK3.0
+ *
+ * @deprecated This constructor is deprecated as of UDK3.2. Using it is
+ * dangerous, as it can create a <code>Type</code> with an
+ * <code>UNKNOWN</code> type class. One of the other constructors like
+ * <code>Type(Class)</code> or <code>Type(String, TypeClass)</code> should
+ * be used instead.
*/
public Type(String typeName) {
TypeClass tc = TypeClass.UNKNOWN;