update to M11 syntax

This commit is contained in:
Dmitry Jemerov
2015-05-15 18:17:59 +02:00
parent a8c5a7e3a5
commit 6b340091d2
4 changed files with 6 additions and 6 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -149,7 +149,7 @@ class MockPackageFacadeGenerator : ModuleLevelBuilder(BuilderCategory.SOURCE_PRO
return "Mock Package Facade Generator"
}
class object {
companion object {
private val PACKAGE_CACHE_STORAGE_PROVIDER = object : StorageProvider<AbstractStateStorage<String, String>>() {
override fun createStorage(targetDataDir: File): AbstractStateStorage<String, String> {
val storageFile = File(targetDataDir, "mockPackageFacade/packages")
@@ -89,7 +89,7 @@ public class BinaryRequestHandlerTest {
}
class MyBinaryRequestHandler : BinaryRequestHandler() {
class object {
companion object {
val ID = UUID.fromString("E5068DD6-1DB7-437C-A3FC-3CA53B6E1AC9")
}
@@ -16,7 +16,7 @@ import com.intellij.openapi.util.io.FileUtilRt
import java.io.File
class TestManager(val projectFixture: IdeaProjectTestFixture) : TestWatcher() {
class object {
companion object {
val EXCLUDED_DIR_NAME = "excludedDir"
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -93,7 +93,7 @@ public class TestGraphBuilder : BaseTestGraphBuilder {
val SimpleEdge.toIndex: Int? get() = toNode?.let { nodeIdToIndex[it] }
;{
init {
val idsMap = HashMap<Int, Int>()
nodes = buildNodes.map2 {(index, it) ->
idsMap[index] = it.nodeId