Skip to content

Commit 5ec6fcf

Browse files
committed
SWEEP: Fixed various build warnings
1 parent 5cb336a commit 5ec6fcf

40 files changed

Lines changed: 148 additions & 143 deletions

tests/ICU4N.TestFramework/Dev/Test/AbstractTestLog.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ namespace ICU4N.Dev.Test
1010
public abstract class AbstractTestLog : TestLog
1111
{
1212
/**
13-
* Returns true if ICU_Version < major.minor.
13+
* Returns true if ICU_Version &lt; major.minor.
1414
*/
1515
static public bool IsICUVersionBefore(int major, int minor)
1616
{
1717
return IsICUVersionBefore(major, minor, 0);
1818
}
1919

2020
/**
21-
* Returns true if ICU_Version < major.minor.milli.
21+
* Returns true if ICU_Version &lt; major.minor.milli.
2222
*/
2323
static public bool IsICUVersionBefore(int major, int minor, int milli)
2424
{

tests/ICU4N.TestFramework/Dev/Test/TestBoilerplate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void Errln(string title, int i, int j)
113113
protected abstract bool AddTestObject(IList<T> c);
114114
/**
115115
* Override if the tested objects are mutable.
116-
* <br>Since Java doesn't tell us, we need a function to tell if so.
116+
* <br/>Since Java doesn't tell us, we need a function to tell if so.
117117
* The default is true, so must be overridden if not.
118118
*/
119119
protected virtual bool IsMutable(T a)

tests/ICU4N.TestFramework/Dev/Test/TestFmwk.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace ICU4N.Dev.Test
1919
/// TestFmwk is a base class for tests that can be run conveniently from the
2020
/// command line as well as in Visual Studio.
2121
/// <para/>
22-
/// Sub-classes implement a set of methods named Test <something>. Each of these
22+
/// Sub-classes implement a set of methods named Test &lt;something&gt;. Each of these
2323
/// methods performs some test. Test methods should indicate errors by calling
2424
/// either err or Errln. This will increment the errorCount field and may
2525
/// optionally print a message to the log. Debugging information may also be
@@ -30,9 +30,9 @@ public abstract class TestFmwk : AbstractTestLog
3030
{
3131
private static readonly object syncLock = new object();
3232

33-
/**
34-
* The default time zone for all of our tests. Used in @Before
35-
*/
33+
/////**
34+
//// * The default time zone for all of our tests. Used in @Before
35+
//// */
3636
// ICU4N NOTE: In .NET, there is no way to set the time zone for the entire app, so
3737
// we need to use another approach than setting it for the test fixture.
3838

@@ -143,9 +143,9 @@ protected Random CreateRandom()
143143

144144
/**
145145
* Integer Random number generator, produces positive int values.
146-
* Similar to C++ std::minstd_rand, with the same algorithm & constants.
146+
* Similar to C++ std::minstd_rand, with the same algorithm &amp; constants.
147147
* Provided for compatibility with ICU4C.
148-
* Get & set of the seed allows for reproducible monkey tests.
148+
* Get &amp; set of the seed allows for reproducible monkey tests.
149149
*/
150150
public class ICU_Rand // ICU4N: made public because of accessiblity issues
151151
{
@@ -441,7 +441,7 @@ private class TestParams
441441
internal int seed;
442442
internal int loggingLevel;
443443

444-
internal string policyFileName;
444+
//internal string policyFileName;
445445
//internal SecurityManager testSecurityManager;
446446
//internal SecurityManager originalSecurityManager;
447447

tests/ICU4N.TestFramework/Dev/Test/TestUtil.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public static bool IsUnprintable(int c)
106106
return !(c >= 0x20 && c <= 0x7E);
107107
}
108108
/**
109-
* Escape unprintable characters using <backslash>uxxxx notation
110-
* for U+0000 to U+FFFF and <backslash>Uxxxxxxxx for U+10000 and
109+
* Escape unprintable characters using /uxxxx notation
110+
* for U+0000 to U+FFFF and /Uxxxxxxxx for U+10000 and
111111
* above. If the character is printable ASCII, then do nothing
112112
* and return FALSE. Otherwise, append the escaped notation and
113113
* return TRUE.

tests/ICU4N.TestFramework/Dev/Test/UTF16Util.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public static int CharAt(char[] source, int start, int limit,
399399

400400

401401
/**
402-
* Forms a supplementary code point from the argument character<br>
402+
* Forms a supplementary code point from the argument character<br/>
403403
* Note this is for internal use hence no checks for the validity of the
404404
* surrogate characters are done
405405
* @param lead lead surrogate character

tests/ICU4N.TestFramework/Dev/Util/CollectionUtilities.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@
641641
// : b == null ? false : a.equals(b);
642642
//}
643643

644-
///**
644+
////**
645645
// * Compare, allowing nulls and putting them first
646646
// * @param a
647647
// * @param b
@@ -654,7 +654,7 @@
654654
// : b == null ? 1 : a.compareTo(b);
655655
//}
656656

657-
///**
657+
////**
658658
// * Compare iterators
659659
// * @param iterator1
660660
// * @param iterator2
@@ -681,7 +681,7 @@
681681
// }
682682
//}
683683

684-
///**
684+
////**
685685
// * Compare, with shortest first, and otherwise lexicographically
686686
// * @param a
687687
// * @param b
@@ -699,7 +699,7 @@
699699
// return compare(iterator1, iterator2);
700700
//}
701701

702-
///**
702+
////**
703703
// * Compare, with shortest first, and otherwise lexicographically
704704
// * @param a
705705
// * @param b
@@ -734,7 +734,7 @@
734734
// }
735735
//};
736736

737-
///**
737+
////**
738738
// * Compare, allowing nulls and putting them first
739739
// * @param a
740740
// * @param b

tests/ICU4N.TestFramework/Dev/Util/UnicodeMap.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,15 +1228,15 @@ public void Reset()
12281228
iterator.Reset();
12291229
}
12301230

1231-
///* (non-Javadoc)
1231+
////* (non-Javadoc)
12321232
// * @see java.util.Iterator#hasNext()
12331233
// */
12341234
//public bool HasNext()
12351235
//{
12361236
// return iterator.hasNext();
12371237
//}
12381238

1239-
///* (non-Javadoc)
1239+
////* (non-Javadoc)
12401240
// * @see java.util.Iterator#next()
12411241
// */
12421242
//public Entry<String, T> next()
@@ -1245,7 +1245,7 @@ public void Reset()
12451245
// return new ImmutableEntry(key, get(key));
12461246
//}
12471247

1248-
///* (non-Javadoc)
1248+
////* (non-Javadoc)
12491249
// * @see java.util.Iterator#remove()
12501250
// */
12511251
//public void remove()

tests/ICU4N.TestFramework/Dev/Util/UnicodeMapIterator.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ public UnicodeMapIterator()
6363
/**
6464
* Returns the next element in the set, either a single code point
6565
* or a string. If there are no more elements in the set, return
66-
* false. If <tt>codepoint == IS_STRING</tt>, the value is a
67-
* string in the <tt>string</tt> field. Otherwise the value is a
68-
* single code point in the <tt>codepoint</tt> field.
66+
* false. If <c>codepoint == IS_STRING</c>, the value is a
67+
* string in the <c>string</c> field. Otherwise the value is a
68+
* single code point in the <c>codepoint</c> field.
6969
*
70-
* <p>The order of iteration is all code points in sorted order,
71-
* followed by all strings sorted order. <tt>codepointEnd</tt> is
72-
* undefined after calling this method. <tt>string</tt> is
73-
* undefined unless <tt>codepoint == IS_STRING</tt>. Do not mix
74-
* calls to <tt>next()</tt> and <tt>nextRange()</tt> without
75-
* calling <tt>reset()</tt> between them. The results of doing so
70+
* <para/>The order of iteration is all code points in sorted order,
71+
* followed by all strings sorted order. <c>codepointEnd</c> is
72+
* undefined after calling this method. <c>string</c> is
73+
* undefined unless <c>codepoint == IS_STRING</c>. Do not mix
74+
* calls to <c>next()</c> and <c>nextRange()</c> without
75+
* calling <c>reset()</c> between them. The results of doing so
7676
* are undefined.
7777
*
7878
* @return true if there was another element in the set and this
@@ -114,17 +114,17 @@ public bool Next()
114114
/**
115115
* Returns the next element in the set, either a code point range
116116
* or a string. If there are no more elements in the set, return
117-
* false. If <tt>codepoint == IS_STRING</tt>, the value is a
117+
* false. If <c>codepoint == IS_STRING</c>, the value is a
118118
* string in the <tt>string</tt> field. Otherwise the value is a
119-
* range of one or more code points from <tt>codepoint</tt> to
120-
* <tt>codepointeEnd</tt> inclusive.
119+
* range of one or more code points from <c>codepoint</c> to
120+
* <c>codepointeEnd</c> inclusive.
121121
*
122-
* <p>The order of iteration is all code points ranges in sorted
122+
* <para/>The order of iteration is all code points ranges in sorted
123123
* order, followed by all strings sorted order. Ranges are
124-
* disjoint and non-contiguous. <tt>string</tt> is undefined
125-
* unless <tt>codepoint == IS_STRING</tt>. Do not mix calls to
126-
* <tt>next()</tt> and <tt>nextRange()</tt> without calling
127-
* <tt>reset()</tt> between them. The results of doing so are
124+
* disjoint and non-contiguous. <c>string</c> is undefined
125+
* unless <c>codepoint == IS_STRING</c>. Do not mix calls to
126+
* <c>next()</c> and <c>nextRange()</c> without calling
127+
* <c>reset()</c> between them. The results of doing so are
128128
* undefined.
129129
*
130130
* @return true if there was another element in the set and this

tests/ICU4N.Tests.Collation/Dev/Test/Collate/CollationAPITest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
using System.Text;
1313
using StringBuffer = System.Text.StringBuilder;
1414

15-
/// <summary>
16-
/// Port From: ICU4C v2.1 : collate/CollationAPITest
17-
/// Source File: $ICU4CRoot/source/test/intltest/apicoll.cpp
18-
/// </summary>
15+
//
16+
// Port From: ICU4C v2.1 : collate/CollationAPITest
17+
// Source File: $ICU4CRoot/source/test/intltest/apicoll.cpp
18+
//
1919
namespace ICU4N.Dev.Test.Collate
2020
{
2121
public class CollationAPITest : TestFmwk

tests/ICU4N.Tests.Collation/Dev/Test/Collate/CollationChineseTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
using System;
44
using System.Globalization;
55

6-
/// <summary>
7-
/// Port From: ICU4C v2.1 : Collate/CollationTurkishTest
8-
/// Source File: $ICU4CRoot/source/test/intltest/trcoll.cpp
9-
/// </summary>
6+
//
7+
// Port From: ICU4C v2.1 : Collate/CollationTurkishTest
8+
// Source File: $ICU4CRoot/source/test/intltest/trcoll.cpp
9+
//
1010
namespace ICU4N.Dev.Test.Collate
1111
{
1212
public class CollationChineseTest : TestFmwk

0 commit comments

Comments
 (0)