1. 23 Feb, 2017 1 commit
    • John Brock's avatar
      Fixes for .NET 3.5 compatibility · c9b2c8f3
      John Brock authored
      * Changing DOTNET35 framework symbols in preprocessor directives to the default built-in value of NET35.
      * Adding extension method StreamExtension.CopyTo for .NET 3.5 because it didn’t exist until .NET 4, and adding associated unit tests.
      c9b2c8f3
  2. 28 Jun, 2016 1 commit
  3. 28 Jul, 2015 1 commit
    • Jon Skeet's avatar
      Tweaks to Profile259 support · 0802d56f
      Jon Skeet authored
      - Fix nupec paths
      - Remove an obsolete part of the JSON build
      - Add documentation and tests to reflection extension methods, and improve implementations
      0802d56f
  4. 27 Jul, 2015 1 commit
    • Jon Skeet's avatar
      First attempt at using profile 259 for Google.Protobuf. · 0dbd5ec8
      Jon Skeet authored
      This requires .NET 4.5, and there are a few compatibility changes required around reflection.
      Creating a PR from this to see how our CI systems handle it. Will want to add more documentation,
      validation and probably tests before merging.
      
      This is in aid of issue #590.
      0dbd5ec8
  5. 17 Jul, 2015 1 commit
  6. 09 Jul, 2015 1 commit
    • Jon Skeet's avatar
      Minor fix-ups as suggested in PR #560. · 3cce11ce
      Jon Skeet authored
      - Added new line at the end of SampleEnum
      - Moved GeneratedMessageTest.GetSampleMessage to a new class, SampleMessages, and renamed it to CreateFullTestAllTypes.
      3cce11ce
  7. 30 Jun, 2015 1 commit
    • Jon Skeet's avatar
      Tidying up and extra tests. · f34d37a3
      Jon Skeet authored
      This is mostly just making things internal instead of public, removing and reordering a bunch of code in CodedInputStream/CodedOutputStream, and generally tidying up.
      f34d37a3
  8. 27 Nov, 2014 1 commit
  9. 19 Nov, 2014 1 commit
  10. 05 Aug, 2013 1 commit
    • Max Cai's avatar
      Fix outer classname for javamicro/javanano. · 06eed37e
      Max Cai authored
      - File class name is defined as the java_outer_classname option value
        or the file name ToCamelCase; never the single message's ClassName.
      - File-scope enums are translated to constants in the file class,
        regardless of java_multiple_files.
      - If java_multiple_files=true, and file's class name equals a message's
        class name, no error. This is done by detecting that the outer class
        is not needed and skipping the outer class codegen and clash checks.
        Note: there is a disparity between java[lite] and the previous
        java{micr|nan}o: when generating code for a single-message proto, the
        outer class is omitted by java{micr|nan}o if the file does not have
        java_outer_classname. This change makes java{micr|nan}o align with
        java[lite] codegen and create the outer class, but will print some
        info to warn of potential change of code.
      - Also fixed the "is_own_file" detection and made all parseX() methods
        static. Previously, all messages in a java_multiple_files=true file
        are (incorrectly) considered to be in their own files, including
        nested messages, causing them to become inner classes (instance-
        bound) and forcing the parseX() methods to lose the static modifier.
      - This change supersedes c/60164 and c/60086, which causes javanano to
        put enum values into enum shell classes if java_multiple_files=true.
        We now always use the parent class to host the enum values. A future
        change will add a command line option to provide more flexibility.
      - Elaborated in java/README.txt.
      
      Change-Id: I684932f90e0a028ef37c662b221def5ffa202439
      06eed37e
  11. 03 Apr, 2013 1 commit
    • Ulas Kirazci's avatar
      Nano protobufs. · d6592c75
      Ulas Kirazci authored
      Like micro protobufs except:
      
      - No setter/getter/hazzer functions.
      - Has state is not available. Outputs all fields != their default.
      - CodedInputStream can only take byte[] (not InputStream).
      - Repeated fields are in arrays, not ArrayList or Vector.
      - Unset messages/groups are null, not "defaultInstance()".
      - Required fields are always serialized.
      
      To use:
      
      - Link libprotobuf-java-2.3.0-nano runtime.
      - Use LOCAL_PROTOC_OPTIMIZE_TYPE := nano
      
      Change-Id: I7429015b3c5f7f38b7be01eb2d4927f7a9999c80
      d6592c75
  12. 01 Apr, 2013 1 commit
    • Ulas Kirazci's avatar
      Nano protobufs. · 2337023f
      Ulas Kirazci authored
      Like micro protobufs except:
      
      - No setter/getter/hazzer functions.
      - Has state is not available. Outputs all fields != their default.
      - CodedInputStream can only take byte[] (not InputStream).
      - Repeated fields are in arrays, not ArrayList or Vector.
      - Unset messages/groups are null, not "defaultInstance()".
      - Required fields are always serialized.
      
      To use:
      
      - Link libprotobuf-java-2.3.0-nano runtime.
      - Use LOCAL_PROTOC_OPTIMIZE_TYPE := nano
      
      Change-Id: I7429015b3c5f7f38b7be01eb2d4927f7a9999c80
      2337023f