ICU-6289 Resovled compiler warnings in Eclipse plug-in build. Updated license files. Add new tests in the Eclipse plug-in unit test.

X-SVN-Rev: 24176
This commit is contained in:
Yoshito Umaoka 2008-06-13 20:06:16 +00:00
parent f0abc13c5d
commit f06268c175
6 changed files with 73 additions and 5 deletions

View file

@ -1800,7 +1800,7 @@
<copy file="license.html"
todir="${eclipse.projects.dir}/plugins/com.ibm.icu.base/about_files" />
<!-- about -->
<copy file="${eclipse.dir}/misc/about_icu.html"
<copy file="${eclipse.dir}/misc/about_icu_base.html"
tofile="${eclipse.projects.dir}/plugins/com.ibm.icu.base/about.html" />
<!-- FEATURE FILES -->

View file

@ -40,9 +40,15 @@ and such source code may be obtained at <a href="http://www.eclipse.org/">http:/
Copyright (c) 1995-2008 International Business Machines Corporation and others<br/>
All rights reserved.
</blockquote>
<p>
Your use of ICU4J is subject to the terms and conditions of the ICU4J license. A copy of the
license is contained in the file <a href="about_files/license.html" target="_blank">about_files/license.html</a>.
</p>
license is contained in the file <a href="about_files/license.html" target="_blank">about_files/license.html</a>.</p>
<p>
ICU4J bundles data files imported from the Unicode Character Database and the Locale Data. A copy of the
Unicode Data and Software license is contained in the file <a href="about_files/ucdterms.txt"/>about_files/ucdterms.txt</a>.</p>
<p>
The project information including source code, documentations and demo programs are available on
the <a href="http://icu-project.org">ICU public web site</a>.</p>
</body>
</html>

View file

@ -0,0 +1,51 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>
<p>July 2, 2008</p>
<h3>License</h3>
<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
<h3>Third Party Content</h3>
<p>The Content includes items that have been sourced from third parties as set out below. If you
did not receive this Content directly from the Eclipse Foundation, the following is provided
for informational purposes only, and you should look to the Redistributor's license for
terms and conditions of use.</p>
<p><strong>ICU4J 4.0</strong> <br/><br/>
The plug-in includes software (&quot;ICU4J&quot;) developed by International Business Machines
Corporation and others.
<br/><br/>
ICU4J is:
<blockquote>
Copyright (c) 1995-2008 International Business Machines Corporation and others<br/>
All rights reserved.
</blockquote>
<p>
Your use of ICU4J is subject to the terms and conditions of the ICU4J license. A copy of the
license is contained in the file <a href="about_files/license.html" target="_blank">about_files/license.html</a>.</p>
<p>
The project information including source code, documentations and demo programs are available on
the <a href="http://icu-project.org">ICU public web site</a>.</p>
</body>
</html>

View file

@ -19,6 +19,10 @@ import com.ibm.icu.dev.test.TestFmwk.TestParams;
public class UnitTest extends TestCase {
public void testBidi() throws Exception {
runUtility("Bidi");
}
public void testCalendar() throws Exception {
runUtility("Calendar");
}
@ -31,6 +35,10 @@ public class UnitTest extends TestCase {
runUtility("Compression");
}
public void testDuration() throws Exception {
runUtility("Duration");
}
public void testDiagBigDecimal() throws Exception {
runUtility("DiagBigDecimal");
}

View file

@ -13,7 +13,6 @@ import java.math.BigInteger;
import java.text.ChoiceFormat;
import java.text.FieldPosition;
import java.text.ParsePosition;
import java.util.ArrayList;
//#if defined(FOUNDATION10)
//#else
@ -25,6 +24,7 @@ import java.io.ObjectOutputStream;
import java.text.AttributedCharacterIterator;
import java.text.AttributedString;
import java.text.Format;
import java.util.ArrayList;
//#endif
import com.ibm.icu.impl.UCharacterProperty;

View file

@ -14,7 +14,6 @@ package com.ibm.icu.text;
import java.io.IOException;
import java.io.InvalidObjectException;
import java.io.ObjectInputStream;
import java.text.CharacterIterator;
import java.text.ChoiceFormat;
import java.text.FieldPosition;
import java.text.Format;
@ -31,6 +30,7 @@ import java.util.HashMap;
import java.text.AttributedCharacterIterator;
import java.text.AttributedString;
import java.util.ArrayList;
import java.text.CharacterIterator;
//#endif
import com.ibm.icu.impl.Utility;
@ -1751,6 +1751,8 @@ public class MessageFormat extends UFormat {
return result;
}
//#if defined(FOUNDATION10) || defined(J2SE13)
//#else
/**
* Convenience method to append all the characters in
* <code>iterator</code> to the StringBuffer <code>result</code>.
@ -1765,6 +1767,7 @@ public class MessageFormat extends UFormat {
}
}
}
//#endif
private static final String[] typeList =
{"", "number", "date", "time", "choice", "spellout", "ordinal",