CPD Results

The following document contains the results of PMD's CPD 6.4.0.

Duplications

File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2173
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3004
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }

        public Builder clone() {
          return (Builder) super.clone();
        }
        public Builder setField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            Object value) {
          return (Builder) super.setField(field, value);
        }
        public Builder clearField(
            com.google.protobuf.Descriptors.FieldDescriptor field) {
          return (Builder) super.clearField(field);
        }
        public Builder clearOneof(
            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          return (Builder) super.clearOneof(oneof);
        }
        public Builder setRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            int index, Object value) {
          return (Builder) super.setRepeatedField(field, index, value);
        }
        public Builder addRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            Object value) {
          return (Builder) super.addRepeatedField(field, value);
        }
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.GTUPositions.GTUPosition) {
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 480
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1075
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2173
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3004
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) {
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 481
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1076
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2174
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3005
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 4038
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation) {
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 75
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 788
    private CreateSimulation(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 9: {
              bitField0_ |= 0x00000001;
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1294
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1477
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3541
    private GTUPositions(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 75
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 788
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1294
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1477
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3541
    private CreateSimulation(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 9: {
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 388
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 995
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2045
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2908
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3939
    public static Builder newBuilder(org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulation prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.opentrafficsim.aimsun.proto.CreateSimulation}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:org.opentrafficsim.aimsun.proto.CreateSimulation)
        org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.CreateSimulationOrBuilder {
File Line
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 813
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1543
              time_ = input.readDouble();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.opentrafficsim.aimsun.proto.AimsunControlProtoBuf.internal_static_org_opentrafficsim_aimsun_proto_SimulateUntil_descriptor;