CPD Results

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

Duplications

File Line
org\opentrafficsim\road\network\factory\osm\output\Convert.java 320
org\opentrafficsim\road\network\factory\osm\output\Convert.java 434
                    if (osmLink.getLanes() == 1 && !osmLink.isOneway())
                    {
                        laneAttributes =
                                new LaneAttributes(network, laneType, Color.GREEN, LongitudinalDirectionality.DIR_BOTH);
                        structure.put(0, laneAttributes);
                    }
                    else
                    {
                        for (int i = 0 - backwards; i < forwards; i++)
                        {
                            if (i < 0)
                            {
                                laneAttributes = new LaneAttributes(network, laneType, Color.GREEN,
                                        LongitudinalDirectionality.DIR_MINUS);
                                structure.put(i, laneAttributes);
                            }
                            if (i >= 0)
                            {
                                laneAttributes =
                                        new LaneAttributes(network, laneType, Color.GREEN, LongitudinalDirectionality.DIR_PLUS);
                                structure.put(i, laneAttributes);
                            }
                        }
                    }
                }