Commit f8522834 authored by Marco Konersmann's avatar Marco Konersmann

Substring was not constructed correctly

parent dc998c45
......@@ -138,7 +138,7 @@ public class LanguageMatcher {
public int compare(URI o1, URI o2) {
// Shortens from http://abc.de/.../1.0 to http://abc.de/...
String shortenedO1 = o1.toString().substring(0, o1.toString().lastIndexOf("/"));
String shortenedO2 = o2.toString().substring(0, o1.toString().lastIndexOf("/"));
String shortenedO2 = o2.toString().substring(0, o2.toString().lastIndexOf("/"));
if(shortenedO1.contains(shortenedO2))
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment