CPD Results

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

Duplications

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

                public Builder clone()
                {
                    return (Builder) super.clone();
                }

                public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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,
                        java.lang.Object value)
                {
                    return (Builder) super.setRepeatedField(field, index, value);
                }

                public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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 587
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1320
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2640
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3681
                result.bitField0_ = to_bitField0_;
                onBuilt();
                return result;
            }

            public Builder clone()
            {
                return (Builder) super.clone();
            }

            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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,
                    java.lang.Object value)
            {
                return (Builder) super.setRepeatedField(field, index, value);
            }

            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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 588
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1321
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2641
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3682
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 5008
                onBuilt();
                return result;
            }

            public Builder clone()
            {
                return (Builder) super.clone();
            }

            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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,
                    java.lang.Object value)
            {
                return (Builder) super.setRepeatedField(field, index, value);
            }

            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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 90
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 966
        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 1586
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1801
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 4377
        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 90
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 966
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1586
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1801
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 4377
        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 478
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1225
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 2489
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 3563
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 4884
        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 995
org\opentrafficsim\aimsun\proto\AimsunControlProtoBuf.java 1879
                            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;