mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-94589 Live template for surround with ReadWriteLock incorrect
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
</context>
|
||||
</template>
|
||||
<template name="RL" resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.with.read.lock"
|
||||
value="try { $LOCK$.readLock().lock(); $SELECTION$ } finally { $LOCK$.readLock().unlock(); } " toReformat="true" toShortenFQNames="true">
|
||||
value="$LOCK$.readLock().lock(); try { $SELECTION$ } finally { $LOCK$.readLock().unlock(); } " toReformat="true" toShortenFQNames="true">
|
||||
<variable name="LOCK" expression="variableOfType("java.util.concurrent.locks.ReadWriteLock")" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
|
||||
<context>
|
||||
@@ -51,7 +51,7 @@
|
||||
</context>
|
||||
</template>
|
||||
<template name="WL" resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.with.write.lock"
|
||||
value="try { $LOCK$.writeLock().lock(); $SELECTION$ } finally { $LOCK$.writeLock().unlock(); } " toReformat="true" toShortenFQNames="true">
|
||||
value="$LOCK$.writeLock().lock(); try { $SELECTION$ } finally { $LOCK$.writeLock().unlock(); } " toReformat="true" toShortenFQNames="true">
|
||||
<variable name="LOCK" expression="variableOfType("java.util.concurrent.locks.ReadWriteLock")" defaultValue="" alwaysStopAt="true" />
|
||||
<variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
|
||||
<context>
|
||||
|
||||
Reference in New Issue
Block a user