Permalink
Commits on Jun 12, 2014
  1. Merge pull request #3 from pcpratts/feature/bson_size

    Feature/bson size
    committed Jun 12, 2014
Commits on Jun 11, 2014
  1. fixing checkstyle errors

    pcpratts committed Jun 11, 2014
  2. fixing test case

    pcpratts committed Jun 11, 2014
Commits on Jun 9, 2014
  1. Merge pull request #2 from pcpratts/hotfix/failed_test

    removing failing test
    committed Jun 9, 2014
  2. removing failing test

    pcpratts committed Jun 9, 2014
Commits on Mar 2, 2013
  1. Update BsonDocumentTest

    I've found a potential bug in the default BsonDocument implementation
    DefaultDocument. The default equals method (which is delegated to a
    LinkedHashMap if my memory serves me right) compares arrays by reference.
    
    I've added a test case for this which fails like it should. When I'll have time
    I'll write a proper hashCode/equals for DefaultDocument.
    committed Mar 2, 2013
Commits on Dec 4, 2012
  1. Update pom.xml

    Increment version (0.3 -> 0.4-SNAPSHOT).
    committed Dec 4, 2012
  2. Update pom.xml

    Increment version (0.3-SNAPSHOT -> 0.3).
    committed Dec 4, 2012
Commits on Nov 24, 2012
  1. Update DefaultWriter

    Add final writeTo implementation which checks if the buffer passed to it is OK
    and delegates to the abstract checkedWriteTo method which is implemented by all
    enum values in the class.
    committed Nov 24, 2012
  2. Update DefaultBinaryReaderWriterTest

    Fix horrible indentation at ternary expression. Eclipse fuck this up, not sure
    how and why.
    committed Nov 24, 2012
  3. Update DefaultDocument{,Builder}

    Add missing braces here and there to for loops and stuff.
    committed Nov 24, 2012
  4. Update DefaultBinaryReaderWriterTest

    Remove @Nullable from the second parameter of UserWriter.writeTo.
    committed Nov 24, 2012
  5. Update BsonDocumentsTest

    Fix test case readFrom_singleByteBuffer_withMultipleDocuments. Forgot to call
    buffer.clear() before using it.
    committed Nov 24, 2012
  6. Update BsonDocumentsTest

    Add new test readFrom_singleByteBuffer_withMultipleDocuments, which asserts
    that multiple documents can be read from a ByteBuffer if it contains multiple
    documents.
    committed Nov 24, 2012
Commits on Nov 18, 2012
Commits on Nov 14, 2012
  1. Fix for supporting BSON user defined binary

    The default BSON binary predicate, reader and writer classes defined in
    Default{Predicate,Reader,Writer} respectively didn't support predicates,
    readers and writers registered via BsonBinary.USER. Now it does.
    
    I added a test case to demonstrate this to the DefaultBinaryReaderWriterTest.
    committed Nov 14, 2012
  2. Add braces to for loops and if tests.

    I swore an *oath* to use braces *everywhere* even if it reduces readability a
    bit. Legacy code has nowhere to run anymore! Hahaha!
    committed Nov 14, 2012
Commits on Sep 24, 2012
Commits on Sep 10, 2012
  1. Bumping versions in POM.xml.

    Declaring dependency on com.google.code.findbugs:jsr305 as the new Guava
    library droppped it from the list of its transitive dependencies.
    committed Sep 10, 2012
Commits on Jun 3, 2012
Commits on May 15, 2012
  1. Really add everything related to BSON symbols.

    I forget to commit everything I've wanted last time, so here's an amendment for
    it. Also I didn't indicate I've updated the DefaultPredicate class (which I
    did), sooo ... that's a wrap!
    committed May 15, 2012
Commits on May 12, 2012
  1. Add mapping for BSON symbol objects.

    Changes:
     - BsonSymbol: interface for a BSON symbol.
     - BasicSymbol: simple implementation of the previous interface.
     - Default{Reader,Writer}: add Bson{Reader,Writer} implementations for the
       symbol object type.
     - BsonObject: registered the Bson{Reader,Writer} implementations as the
       default ones for this type of BSON objects.
     - DefaultSymbolReaderWriterTest: not too exhaustive test for the
       implementations.
    
    (Interactions with MongoDB are yet to be tested.)
    committed May 12, 2012
  2. Change source and target version from 1.6 to 1.7.

    Change maven-compiler-plugin source and target from 1.6 to 1.7. Make changes to
    the source code according to this:
     - BsonDocumentsTest: remove HashMap<K,V> declarations as Java 7 doesn't
       requires it.
     - DefaultRegularExpressionReaderWriterTest: uncomment a test block which
       referenced the UNICODE_CHARACTER_CLASS static int (from Pattern). The code
       that was previously commented out stayed in the code base in case the source
       and target changes to 1.7. The referencing test case is ignored, because
       this regular expression options isn't supported.
    committed May 12, 2012
  3. Update dependency and plugin versions in POM.

    Changes:
     - guava: 11.0.1 -> 12.0
     - mongo-java-driver: 2.7.2 -> 2.7.3
     - maven-compiler-plugin: 2.3.2 -> 2.4
    committed May 12, 2012
Commits on Mar 10, 2012
  1. Fix erroneuous assertion in BasicTimestamp.

    The assertion in the ctor failed if more than one document (with a
    Timestamp) were in the buffer. (Some commits ago I failed to fix
    BasicTimestamp as I did with BasicObjectId ... but hey! Better later
    than never, right?)
    committed Mar 10, 2012
Commits on Feb 29, 2012
Commits on Feb 18, 2012
  1. Update maven-checkstyle-version.

    (From 2.8 to 2.9.)
    committed Feb 18, 2012
Commits on Feb 7, 2012
  1. Fix erroneuous assertion in BasicObjectId.

    The assertion failed if more than one document (with an ObjectId) were in the
    buffer.
    committed Feb 7, 2012
Commits on Feb 6, 2012
  1. Remove document key checks.

    The reason for this is that MongoDB uses keys that starts with '$' or
    contains '.' internally  which have two consequences: (a) users aren't *normally*
    permitted to create documents using such keys, (b) documents sent by the
    database need to handled *differently* upon deserialization as they could contain such
    keys quite often. The whole *checking-for-invalid-keys* should be handled at
    MongoDB driver level (morelike at database level, but whatever ...).
    
     - Remove document key checks from DefaultBsonDocument, DefaultBsonDocumentBuilder
       and BsonDocuments.
     - Update BsonDocument, BsonDocument.Builder and BsonDocuments documentation
       accordingly.
     - Delete BsonPreconditions as the class was used only at one place of the code.
    committed Feb 6, 2012
Commits on Jan 28, 2012
  1. Update DOCUMENT reader. Rename ObjectId ...

     - Update DefaultReader.DOCUMENT so that it returns an immutable BsonDocument
       instead of a simple Map.
     - Update BsonDocuments.readFrom(ByteBuffer) so that it doesn't create a new
       BsonDocument by copying the Map (which is a BsonDocument really) that was
       read from the buffer.
     - Rename ObjectId --> BsonObjectId.
     - Reanem Timestamp --> BsonTimestamp.
    committed Jan 28, 2012