Renamed Name.getName() and FqName.getFqName() to asString()
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ public final class AnalyzerWithCompilerReport {
|
||||
if (!incompletes.isEmpty()) {
|
||||
StringBuilder message = new StringBuilder("The following classes have incomplete hierarchies:\n");
|
||||
for (ClassDescriptor incomplete : incompletes) {
|
||||
String fqName = DescriptorUtils.getFQName(incomplete).getFqName();
|
||||
String fqName = DescriptorUtils.getFQName(incomplete).asString();
|
||||
message.append(" ").append(fqName).append("\n");
|
||||
}
|
||||
messageCollectorWrapper.report(CompilerMessageSeverity.ERROR, message.toString(), CompilerMessageLocation.NO_LOCATION);
|
||||
|
||||
@@ -203,7 +203,7 @@ public class CompileEnvironmentUtil {
|
||||
mainAttributes.putValue("Manifest-Version", "1.0");
|
||||
mainAttributes.putValue("Created-By", "JetBrains Kotlin");
|
||||
if (mainClass != null) {
|
||||
mainAttributes.putValue("Main-Class", mainClass.getFqName());
|
||||
mainAttributes.putValue("Main-Class", mainClass.asString());
|
||||
}
|
||||
JarOutputStream stream = new JarOutputStream(fos, manifest);
|
||||
for (String file : factory.files()) {
|
||||
|
||||
@@ -236,7 +236,7 @@ public class ReplInterpreter {
|
||||
}
|
||||
|
||||
try {
|
||||
Class<?> scriptClass = classLoader.loadClass(scriptClassName.getFqName().getFqName());
|
||||
Class<?> scriptClass = classLoader.loadClass(scriptClassName.getFqName().asString());
|
||||
|
||||
Class<?>[] constructorParams = new Class<?>[earlierLines.size()];
|
||||
Object[] constructorArgs = new Object[earlierLines.size()];
|
||||
|
||||
Reference in New Issue
Block a user