mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
update to M11 syntax
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user