poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r953721 - in /poi/trunk/src/java/org/apache/poi/hssf/record: UnicodeString.java common/UnicodeString.java
Date Fri, 11 Jun 2010 15:17:06 GMT
Author: nick
Date: Fri Jun 11 15:16:49 2010
New Revision: 953721

URL: http://svn.apache.org/viewvc?rev=953721&view=rev
Log:
Keep compatibility for now, and alert people to move to the new class

Added:
    poi/trunk/src/java/org/apache/poi/hssf/record/UnicodeString.java
Modified:
    poi/trunk/src/java/org/apache/poi/hssf/record/common/UnicodeString.java

Added: poi/trunk/src/java/org/apache/poi/hssf/record/UnicodeString.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/UnicodeString.java?rev=953721&view=auto
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/UnicodeString.java (added)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/UnicodeString.java Fri Jun 11 15:16:49 2010
@@ -0,0 +1,35 @@
+/* ====================================================================
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+==================================================================== */
+
+package org.apache.poi.hssf.record;
+/**
+ * @deprecated Use {@link org.apache.poi.hssf.record.common.UnicodeString} instead
+ */
+public final class UnicodeString extends org.apache.poi.hssf.record.common.UnicodeString
{
+   /**
+    * @deprecated Use {@link org.apache.poi.hssf.record.common.UnicodeString} instead
+    */
+   public UnicodeString(RecordInputStream in) {
+      super(in);
+   }
+   /**
+    * @deprecated Use {@link org.apache.poi.hssf.record.common.UnicodeString} instead
+    */
+   public UnicodeString(String str) {
+      super(str);
+   }
+}

Modified: poi/trunk/src/java/org/apache/poi/hssf/record/common/UnicodeString.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/common/UnicodeString.java?rev=953721&r1=953720&r2=953721&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/common/UnicodeString.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/common/UnicodeString.java Fri Jun 11 15:16:49
2010
@@ -38,7 +38,7 @@ import org.apache.poi.util.StringUtil;
  * REFERENCE:  PG 264 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)<p/>
  * REFERENCE:  PG 951 Excel Binary File Format (.xls) Structure Specification v20091214 
  */
-public final class UnicodeString implements Comparable<UnicodeString> {
+public class UnicodeString implements Comparable<UnicodeString> { // TODO - make this
final when the compatibility version is removed
     private short             field_1_charCount;
     private byte              field_2_optionflags;
     private String            field_3_string;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message