Skip to content

Commit

Permalink
FBP-237. Add !COMPATIBILITY
Browse files Browse the repository at this point in the history
  • Loading branch information
valb3r committed Jul 31, 2021
1 parent fefc13d commit 2664dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class IntelliJBpmnDebugger(private val schema: DbElement): BpmnDebugger
private fun fetchFromDb(project: Project, processId: String): ExecutedElements? {
try {
val connProvider = DbImplUtil.getDatabaseConnection(schema, DGDepartment.INTROSPECTION)?.get()
// Old IntelliJ provides only getJdbcConnection
// TODO !COMPATIBILITY: Old IntelliJ provides only getJdbcConnection
try {
val jdbcSupplier = connProvider?.javaClass?.getMethod("getJdbcConnection")
if (true != jdbcSupplier?.isAccessible) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fun isJreHiDPIEnabled(): Boolean {
val jreHighDpiUtil = Class.forName("com.intellij.ui.JreHiDpiUtil")
jreHighDpiUtil.getMethod("isJreHiDPIEnabled").invoke(null) as Boolean
} catch (ex: Exception) {
// TODO com.intellij.util.ui.UIUtil.isJreHiDPIEnabled is scheduled for removal in 2021.3, keeping it as fallback for 2018.1
// TODO !COMPATIBILITY: com.intellij.util.ui.UIUtil.isJreHiDPIEnabled is scheduled for removal in 2021.3, keeping it as fallback for 2018.1
val uiUtil = Class.forName("com.intellij.util.ui.UIUtil")
uiUtil.getMethod("isJreHiDPIEnabled").invoke(null) as Boolean
}
Expand Down

0 comments on commit 2664dd1

Please sign in to comment.