You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/31 17:55:46 UTC
[13/50] [abbrv] lucenenet git commit:
Lucene.Net.Core.Support.StreamUtils: renamed Formatter field camelCase
Lucene.Net.Core.Support.StreamUtils: renamed Formatter field camelCase
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/6032fd77
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/6032fd77
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/6032fd77
Branch: refs/heads/api-work
Commit: 6032fd770628c087952c58caf00bc5737d602429
Parents: fa0a6d5
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Jan 31 11:50:16 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Jan 31 11:50:16 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Core/Support/StreamUtils.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6032fd77/src/Lucene.Net.Core/Support/StreamUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/StreamUtils.cs b/src/Lucene.Net.Core/Support/StreamUtils.cs
index e6cd549..3925954 100644
--- a/src/Lucene.Net.Core/Support/StreamUtils.cs
+++ b/src/Lucene.Net.Core/Support/StreamUtils.cs
@@ -5,27 +5,27 @@ namespace Lucene.Net.Support
{
public static class StreamUtils
{
- static readonly BinaryFormatter Formatter = new BinaryFormatter();
+ static readonly BinaryFormatter formatter = new BinaryFormatter();
public static void SerializeToStream(object o, Stream outputStream)
{
- Formatter.Serialize(outputStream, o);
+ formatter.Serialize(outputStream, o);
}
public static void SerializeToStream(object o, BinaryWriter writer)
{
- Formatter.Serialize(writer.BaseStream, o);
+ formatter.Serialize(writer.BaseStream, o);
}
public static object DeserializeFromStream(Stream stream)
{
- object o = Formatter.Deserialize(stream);
+ object o = formatter.Deserialize(stream);
return o;
}
public static object DeserializeFromStream(BinaryReader reader)
{
- object o = Formatter.Deserialize(reader.BaseStream);
+ object o = formatter.Deserialize(reader.BaseStream);
return o;
}
}