Changeset 18432 in josm for trunk


Ignore:
Timestamp:
2022-04-19T20:15:15+02:00 (2 years ago)
Author:
taylor.smock
Message:

ProtobufRecord: Fix failing test from r18431 (oops)

This was due to not keeping the default value (WireType#Unknown).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/protobuf/ProtobufRecord.java

    r18431 r18432  
    3333        // By not using a stream, we reduce the number of allocations (for getting the WireType) from 257 MB to 40 MB.
    3434        // (The remaining 40 MB is from WireType#values). By using the cached getAllValues(), we drop the 40 MB.
    35         WireType tType = null;
     35        WireType tType = WireType.UNKNOWN;
    3636        for (WireType wType : WireType.getAllValues()) {
    3737            if (wType.getTypeRepresentation() == wireType) {
Note: See TracChangeset for help on using the changeset viewer.