提交 6a9ac98c 编写于 作者: H Heejae Chang 提交者: GitHub

Merge pull request #13008 from heejaechang/objectPRfeedback

address Chuck's PR feedback
......@@ -163,6 +163,8 @@ public void CheckWords()
var required = BitVector.WordsRequired(capacity);
var count = BitVector.AllSet(capacity).Words().Count();
Assert.Equal(required, count);
}
}
......
......@@ -411,7 +411,7 @@ private Array ReadPrimitiveTypeArrayElements(Type type, DataKind kind, int lengt
}
}
private Array ReadBooleanArray(int length)
private bool[] ReadBooleanArray(int length)
{
if (length == 0)
{
......@@ -441,7 +441,7 @@ private Array ReadBooleanArray(int length)
return array;
}
private T[] ReadPrimitiveTypeArrayElements<T>(int length, Func<T> read)
private static T[] ReadPrimitiveTypeArrayElements<T>(int length, Func<T> read)
{
if (length == 0)
{
......
......@@ -579,7 +579,7 @@ private void WriteBooleanArray(bool[] array)
}
}
private void WritePrimitiveTypeArrayElements<T>(T[] array, Action<T> write)
private static void WritePrimitiveTypeArrayElements<T>(T[] array, Action<T> write)
{
for (var i = 0; i < array.Length; i++)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册