Skip to content

Commit f481b02

Browse files
committed
update pmd config
Signed-off-by: neo <1100909+neowu@users.noreply.github.com>
1 parent 9d9295d commit f481b02

File tree

2 files changed

+2
-2
lines changed
  • buildSrc/src/main/check
  • core-ng/src/main/java/core/framework/internal/resource

2 files changed

+2
-2
lines changed

buildSrc/src/main/check/pmd.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals"/>
142142
<rule ref="category/java/errorprone.xml/UseCorrectExceptionLogging"/>
143143
<rule ref="category/java/errorprone.xml/UseEqualsToCompareStrings"/>
144-
<!--<rule ref="category/java/errorprone.xml/UselessPureMethodCall"/>-->
144+
<rule ref="category/java/errorprone.xml/UselessPureMethodCall"/>
145145
<rule ref="category/java/errorprone.xml/UseLocaleWithCaseConversions"/>
146146
<rule ref="category/java/errorprone.xml/UseProperClassLoader"/>
147147

core-ng/src/main/java/core/framework/internal/resource/Pool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private PoolItem<T> createNewItem() {
133133
item = new PoolItem<>(factory.get());
134134
return item;
135135
} catch (Throwable e) {
136-
size.getAndDecrement();
136+
size.decrementAndGet();
137137
throw e;
138138
} finally {
139139
LOGGER.debug("create new resource, pool={}, item={}, elapsed={}", name, item == null ? null : item.resource, watch.elapsed());

0 commit comments

Comments
 (0)