test_class.file: server-core/src/test/java/io/onedev/server/util/PathComparatorTest.java
test_class.identifier: PathComparatorTest
test_case.body: @Test
  	public void test() {
  		assertEquals(new PathComparator().compare("a/b", "b"), -1);
  		assertEquals(new PathComparator().compare("a", "b"), -1);
  		assertEquals(new PathComparator().compare("a/c", "a"), 1);
  		assertEquals(new PathComparator().compare("abc", "ab/c"), 1);
  		assertEquals(new PathComparator().compare("a/b/c", "a/b/c"), 0);
  		assertEquals(new PathComparator().compare("a/b/c/d", "a/b/c"), 1);
  	}
test_case.class_method_signature: PathComparatorTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: assertEquals compare assertEquals compare assertEquals compare assertEquals compare assertEquals compare assertEquals compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.file: server-core/src/main/java/io/onedev/server/util/PathComparator.java
focal_class.identifier: PathComparator
focal_class.interfaces: implements Comparator<String>
focal_class.class_method_signature: PathComparator.compare(String path1, String path2)
focal_class.full_signature: @Override public int compare(String path1, String path2)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (String path1, String path2)
focal_class.return: int
focal_class.signature: int compare(String path1, String path2)
focal_method.body: @Override
  	public int compare(String path1, String path2) {
  		List<String> segments1 = Splitter.on('/').splitToList(path1);
  		List<String> segments2 = Splitter.on('/').splitToList(path2);
  		return PathUtils.compare(segments1, segments2);
  	}
focal_method.class_method_signature: PathComparator.compare(String path1, String path2)
focal_method.full_signature: @Override public int compare(String path1, String path2)
focal_method.identifier: compare
focal_method.invocations: splitToList on splitToList on compare
focal_method.modifiers: @Override public
focal_method.parameters: (String path1, String path2)
focal_method.return: int
focal_method.signature: int compare(String path1, String path2)