* fix
This commit is contained in:
parent
af8e8c185a
commit
7301bd0357
|
@ -947,7 +947,7 @@ public class MediaDetection {
|
|||
querySet = getUniqueQuerySet(stripBlacklistedTerms(querySet));
|
||||
|
||||
// DEBUG
|
||||
System.out.format("Query %s: %s%n", queryLookupService.getName(), querySet);
|
||||
// System.out.format("Query %s: %s%n", queryLookupService.getName(), querySet);
|
||||
|
||||
final Map<Movie, Float> probabilityMap = new LinkedHashMap<Movie, Float>();
|
||||
final SimilarityMetric metric = getMovieMatchMetric();
|
||||
|
|
|
@ -27,10 +27,9 @@ public final class StringUtilities {
|
|||
public static String join(Iterable<?> values, CharSequence delimiter, CharSequence start, CharSequence end) {
|
||||
StringBuilder sb = new StringBuilder().append(start);
|
||||
|
||||
for (Iterator<?> iterator = values.iterator(); iterator.hasNext();) {
|
||||
Object value = iterator.next();
|
||||
for (Object value : values) {
|
||||
if (!isEmpty(value)) {
|
||||
if (sb.length() > 0) {
|
||||
if (sb.length() > start.length()) {
|
||||
sb.append(delimiter);
|
||||
}
|
||||
sb.append(value);
|
||||
|
|
Loading…
Reference in New Issue