added 'getKotlinAnalogsForJavaStandardClasses'

to most of module configurations
This commit is contained in:
Svetlana Isakova
2012-08-29 15:58:00 +04:00
parent 31831f2433
commit 6fe49398a6
7 changed files with 17 additions and 12 deletions
@@ -92,6 +92,11 @@ public class JavaBridgeConfiguration implements ModuleConfiguration {
@NotNull
@Override
public Collection<ClassDescriptor> getKotlinAnalogs(@NotNull FqNameUnsafe classOrPackageName) {
return getKotlinAnalogsForJavaStandardClasses(classOrPackageName);
}
@NotNull
public static Collection<ClassDescriptor> getKotlinAnalogsForJavaStandardClasses(@NotNull FqNameUnsafe classOrPackageName) {
if (classOrPackageName.isSafe()) {
return JavaToKotlinTypesMap.getInstance().getAllKotlinAnalogs(classOrPackageName.toSafe());
}