From a62beb08abb8ad29f7fe5d3e08bb8805d60173ad Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 26 Feb 2004 12:40:24 +0000 Subject: INTEGRATION: CWS sb13 (1.12.18); FILE MERGED 2004/02/05 09:27:26 sb 1.12.18.1: #114964# Deprecated Type(String) ctor. --- ridljar/com/sun/star/uno/Type.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ridljar/com/sun/star/uno/Type.java') 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 Type with the given type name. * - *

TODO: This constructor is dangerous, as it can create a - * Type with an UNKNOWN type class. It would be - * better if this constructor threw a IllegalArgumentException - * instead.

- * * @param typeName the name of this type; must not be null. * For simple types (VOID, BOOLEAN, * CHAR, BYTE, SHORT, @@ -376,6 +371,12 @@ public class Type { * for other types, the type class is set to UNKNOWN. * * @since UDK3.0 + * + * @deprecated This constructor is deprecated as of UDK3.2. Using it is + * dangerous, as it can create a Type with an + * UNKNOWN type class. One of the other constructors like + * Type(Class) or Type(String, TypeClass) should + * be used instead. */ public Type(String typeName) { TypeClass tc = TypeClass.UNKNOWN; -- cgit