test_class.declarator: VALUE_5 = 5
test_class.modifier: private static final
test_class.original_string: private static final int VALUE_5 = 5;
test_class.type: int
test_class.var_name: VALUE_5
test_class.declarator: VALUE_100 = 100
test_class.modifier: private static final
test_class.original_string: private static final int VALUE_100 = 100;
test_class.type: int
test_class.var_name: VALUE_100
test_class.declarator: VALUE_400 = 400
test_class.modifier: private static final
test_class.original_string: private static final int VALUE_400 = 400;
test_class.type: int
test_class.var_name: VALUE_400
test_class.declarator: VALUE_500 = 500
test_class.modifier: private static final
test_class.original_string: private static final int VALUE_500 = 500;
test_class.type: int
test_class.var_name: VALUE_500
test_class.declarator: RETURN_CODE_MINUS_ONE = -1
test_class.modifier: private static final
test_class.original_string: private static final int RETURN_CODE_MINUS_ONE = -1;
test_class.type: int
test_class.var_name: RETURN_CODE_MINUS_ONE
test_class.declarator: PATH_LENGTH = 2553
test_class.modifier: private static final
test_class.original_string: private static final int PATH_LENGTH = 2553;
test_class.type: int
test_class.var_name: PATH_LENGTH
test_class.declarator: path = new ArrayList<Line>()
test_class.modifier: private final
test_class.original_string: private final ArrayList<Line> path = new ArrayList<Line>();
test_class.type: ArrayList<Line>
test_class.var_name: path
test_class.declarator: emptyPath = new ArrayList<Line>()
test_class.modifier: private final
test_class.original_string: private final ArrayList<Line> emptyPath = new ArrayList<Line>();
test_class.type: ArrayList<Line>
test_class.var_name: emptyPath
test_class.declarator: notConnectedPath = new ArrayList<Line>()
test_class.modifier: private final
test_class.original_string: private final ArrayList<Line> notConnectedPath = new ArrayList<Line>();
test_class.type: ArrayList<Line>
test_class.var_name: notConnectedPath
test_class.declarator: pq = new PriorityQueue<PQElem>(11,
              new PQElem.PQElemComparator())
test_class.modifier: private final
test_class.original_string: private final PriorityQueue<PQElem> pq = new PriorityQueue<PQElem>(11,
              new PQElem.PQElemComparator());
test_class.type: PriorityQueue<PQElem>
test_class.var_name: pq
test_class.declarator: l1
test_class.modifier: private
test_class.original_string: private Line l1;
test_class.type: Line
test_class.var_name: l1
test_class.declarator: elem1
test_class.modifier: private
test_class.original_string: private PQElem elem1;
test_class.type: PQElem
test_class.var_name: elem1
test_class.declarator: l4
test_class.modifier: private
test_class.original_string: private Line l4;
test_class.type: Line
test_class.var_name: l4
test_class.declarator: elem4
test_class.modifier: private
test_class.original_string: private PQElem elem4;
test_class.type: PQElem
test_class.var_name: elem4
test_class.declarator: l3
test_class.modifier: private
test_class.original_string: private Line l3;
test_class.type: Line
test_class.var_name: l3
test_class.declarator: elem5
test_class.modifier: private
test_class.original_string: private PQElem elem5;
test_class.type: PQElem
test_class.var_name: elem5
test_class.declarator: elem6
test_class.modifier: private
test_class.original_string: private PQElem elem6;
test_class.type: PQElem
test_class.var_name: elem6
test_class.file: map/src/test/java/openlr/map/utils/PathUtilsTest.java
test_class.identifier: PathUtilsTest
test_case.body: @Test
      public final void testFindCommonLineInPaths() {
          assertEquals(PathUtils.findCommonLineInPaths(path, elem4), l4);
          assertEquals(PathUtils.findCommonLineInPaths(path, elem6), l4);
          assertNull(PathUtils.findCommonLineInPaths(path, null));
          assertNull(PathUtils.findCommonLineInPaths(null, elem6));
          assertNull(PathUtils.findCommonLineInPaths(path,
                  new LineLinkedListElement() {
                      @Override
                      public LineLinkedListElement getPrevious() {
                          return null;
                      }
  
                      @Override
                      public Line getLine() {
                          return null;
                      }
                  }));
          assertNull(PathUtils.findCommonLineInPaths(emptyPath, elem4));
      }
test_case.class_method_signature: PathUtilsTest.testFindCommonLineInPaths()
test_case.full_signature: @Test public final void testFindCommonLineInPaths()
test_case.identifier: testFindCommonLineInPaths
test_case.invocations: assertEquals findCommonLineInPaths assertEquals findCommonLineInPaths assertNull findCommonLineInPaths assertNull findCommonLineInPaths assertNull findCommonLineInPaths assertNull findCommonLineInPaths
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindCommonLineInPaths()
focal_class.file: map/src/main/java/openlr/map/utils/PathUtils.java
focal_class.identifier: PathUtils
focal_class.class_method_signature: PathUtils.PathUtils()
focal_class.full_signature: private  PathUtils()
focal_class.identifier: PathUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  PathUtils()
focal_class.class_method_signature: PathUtils.getLength(final List<Line> path, final Line start,
                                  final Line end)
focal_class.full_signature: public static int getLength(final List<Line> path, final Line start,
                                  final Line end)
focal_class.identifier: getLength
focal_class.modifiers: public static
focal_class.parameters: (final List<Line> path, final Line start,
                                  final Line end)
focal_class.return: int
focal_class.signature: int getLength(final List<Line> path, final Line start,
                                  final Line end)
focal_class.class_method_signature: PathUtils.getLength(final List<Line> path)
focal_class.full_signature: public static int getLength(final List<Line> path)
focal_class.identifier: getLength
focal_class.modifiers: public static
focal_class.parameters: (final List<Line> path)
focal_class.return: int
focal_class.signature: int getLength(final List<Line> path)
focal_class.class_method_signature: PathUtils.checkPathConnection(final List<Line> path)
focal_class.full_signature: public static boolean checkPathConnection(final List<Line> path)
focal_class.identifier: checkPathConnection
focal_class.modifiers: public static
focal_class.parameters: (final List<Line> path)
focal_class.return: boolean
focal_class.signature: boolean checkPathConnection(final List<Line> path)
focal_class.class_method_signature: PathUtils.constructPath(final LineLinkedListElement dest)
focal_class.full_signature: public static List<Line> constructPath(final LineLinkedListElement dest)
focal_class.identifier: constructPath
focal_class.modifiers: public static
focal_class.parameters: (final LineLinkedListElement dest)
focal_class.return: List<Line>
focal_class.signature: List<Line> constructPath(final LineLinkedListElement dest)
focal_class.class_method_signature: PathUtils.findElementInQueue(
              final Queue<? extends LineLinkedListElement> pq, final Line line)
focal_class.full_signature: public static LineLinkedListElement findElementInQueue(
              final Queue<? extends LineLinkedListElement> pq, final Line line)
focal_class.identifier: findElementInQueue
focal_class.modifiers: public static
focal_class.parameters: (
              final Queue<? extends LineLinkedListElement> pq, final Line line)
focal_class.return: LineLinkedListElement
focal_class.signature: LineLinkedListElement findElementInQueue(
              final Queue<? extends LineLinkedListElement> pq, final Line line)
focal_class.class_method_signature: PathUtils.findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_class.full_signature: public static Line findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_class.identifier: findCommonLineInPaths
focal_class.modifiers: public static
focal_class.parameters: (final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_class.return: Line
focal_class.signature: Line findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_method.body: public static Line findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el) {
          Line line = null;
          LineLinkedListElement current = el;
          if (location != null && current != null && current.getLine() != null) {
              if (location.contains(current.getLine())) {
                  line = current.getLine();
              } else {
                  while (current.getPrevious() != null) {
                      current = current.getPrevious();
                      if (location.contains(current.getLine())) {
                          line = current.getLine();
                          break;
                      }
                  }
              }
          }
          return line;
      }
focal_method.class_method_signature: PathUtils.findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_method.full_signature: public static Line findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_method.identifier: findCommonLineInPaths
focal_method.invocations: getLine contains getLine getLine getPrevious getPrevious contains getLine getLine
focal_method.modifiers: public static
focal_method.parameters: (final List<? extends Line> location,
                                               final LineLinkedListElement el)
focal_method.return: Line
focal_method.signature: Line findCommonLineInPaths(final List<? extends Line> location,
                                               final LineLinkedListElement el)