1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00
This commit is contained in:
Reinhard Pointner 2015-05-20 07:35:50 +00:00
parent af8e8c185a
commit 7301bd0357
2 changed files with 3 additions and 4 deletions

View File

@ -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();

View File

@ -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);