Use guava's 'Joiner' instead of 'String.join'

This replaces the usage of the Java 8 'String.join' method with guava's
'Joiner' which is Java 6 compatible.
This commit is contained in:
Albert Gorski 2016-09-21 10:33:23 -04:00 committed by Ben Gruver
parent 8f6f59cc66
commit 8b309d62f4

View File

@ -31,6 +31,7 @@
package org.jf.dexlib2.analysis; package org.jf.dexlib2.analysis;
import com.google.common.base.Joiner;
import com.google.common.base.Predicates; import com.google.common.base.Predicates;
import com.google.common.base.Supplier; import com.google.common.base.Supplier;
import com.google.common.base.Suppliers; import com.google.common.base.Suppliers;
@ -219,7 +220,7 @@ public class ClassProto implements TypeProto {
if (!interfacesFullyResolved) { if (!interfacesFullyResolved) {
throw new UnresolvedClassException("Interfaces for class %s not fully resolved: %s", getType(), throw new UnresolvedClassException("Interfaces for class %s not fully resolved: %s", getType(),
String.join(",", getUnresolvedInterfaces())); Joiner.on(',').join(getUnresolvedInterfaces()));
} }
return directInterfaces; return directInterfaces;