1. 07 Nov, 2013 1 commit
  2. 06 Nov, 2013 1 commit
  3. 05 Nov, 2013 1 commit
    • Aurash Mahbod's avatar
      Allow for ref-type arrays containing null elements. · 3f0c3480
      Aurash Mahbod authored
      Strip the null elements out before serializing the array.
      This is helpful in the cases where the user wants to construct
      an array of an inexact size for serialization. For example:
      User constructs array of size 5 because they anticipate adding
      more than 1 element before serialization. Only 3 get added, so
      the array looks like [Obj, Obj, Obj, null, null]. This would
      curently crash without this CL.
      
      All repeated fields of ref-type elements can contain null
      elements: repeated strings, repeated bytes, and repeated
      messages/groups.
      
      Change-Id: I117391c868c9a436536d70d6151780e9cc7e8227
      
      Conflicts:
      	src/google/protobuf/compiler/javanano/javanano_message_field.cc
      3f0c3480
  4. 25 Oct, 2013 3 commits
  5. 16 Oct, 2013 8 commits
  6. 15 Oct, 2013 5 commits
  7. 11 Oct, 2013 4 commits
  8. 10 Oct, 2013 3 commits
  9. 09 Oct, 2013 4 commits
  10. 08 Oct, 2013 1 commit
    • Andrew Flynn's avatar
      Fix some indenting issues with set__() function · 0b86e55f
      Andrew Flynn authored
      Previously it looked like this:
      
      public final class OuterClass {
        [...]
        public static final class InnerClass extends
            com.google.protobuf.nano.MessageNano {
          [...]
          public void setId(java.lang.String value) {
            if (value == null) {
          throw new java.lang.NullPointerException();
        }
        id_ = value;
            bitfield0_ |= 0x00000001;
          [...]
        }
        [...]
      }
      
      Now it looks like this:
      
      public final class OuterClass {
        [...]
        public static final class InnerClass extends
            com.google.protobuf.nano.MessageNano {
          [...]
          public void setId(java.lang.String value) {
            if (value == null) throw new java.lang.NullPointerException();
            id_ = value;
            bitfield0_ |= 0x00000001;
          [...]
        }
        [...]
      }
      
      Change-Id: I2a9289b528f785c846210d558206d677aa13e9be
      0b86e55f
  11. 07 Oct, 2013 1 commit
  12. 04 Oct, 2013 3 commits
  13. 28 Sep, 2013 4 commits
  14. 25 Sep, 2013 1 commit
    • Max Cai's avatar
      Implement enum_style=java option. · 1479c7ab
      Max Cai authored
      This javanano_out command line option creates a container interface
      at the normal place where the enum constants would reside, per enum
      definition. The java_multiple_files flag would now affect the file-
      scope enums with the shells. If the flag is true then file-scope
      container interfaces are created in their own files.
      
      Change-Id: Id52258fcff8d3dee9db8f3d8022147a811bf3565
      1479c7ab