Permalink
Browse files

fixed field name and and method name that bugged me

  • Loading branch information...
nberardi committed May 16, 2012
1 parent 3dfff71 commit dcbcd0eff63fd96cf1c0f07dee93fb5835f80da5
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/Types/CassandraType.cs
View
@@ -31,7 +31,7 @@ public sealed class CassandraType
private readonly string _dbType;
private Type _type;
- private bool? _dbTypeReversed;
+ private bool? _typeReversed;
private IList<CassandraType> _compositeTypes;
private IDictionary<char, CassandraType> _dynamicCompositeType;
@@ -47,7 +47,7 @@ public CassandraType(string type)
public CassandraObject CreateInstance()
{
if (_type == null)
- Parse();
+ Init();
CassandraObject obj;
@@ -70,10 +70,10 @@ public bool Reversed
{
get
{
- if (_dbTypeReversed == null)
- Parse();
+ if (_typeReversed == null)
+ Init();
- return _dbTypeReversed.Value;
+ return _typeReversed.Value;
}
}
@@ -82,15 +82,15 @@ public Type FluentType
get
{
if (_type == null)
- Parse();
+ Init();
return _type;
}
}
- private void Parse()
+ private void Init()
{
- _dbTypeReversed = false;
+ _typeReversed = false;
int compositeStart = _dbType.IndexOf('(');
// check for composite type
@@ -117,7 +117,7 @@ private void Parse()
private void ParseReversedType(string part)
{
part = part.Trim('(', ')');
- _dbTypeReversed = true;
+ _typeReversed = true;
_type = Parse(part);
}

0 comments on commit dcbcd0e

Please sign in to comment.