You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/12/28 13:01:40 UTC
(commons-codec) 14/19: Add Checkstyle RightCurly
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
commit 13aedc5dca278a7e74e861411abf2aeea6bd0b38
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Dec 28 07:56:10 2024 -0500
Add Checkstyle RightCurly
---
src/conf/checkstyle.xml | 1 +
src/test/java/org/apache/commons/codec/binary/BaseNTestData.java | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml
index f43e2388..f2b044db 100644
--- a/src/conf/checkstyle.xml
+++ b/src/conf/checkstyle.xml
@@ -73,6 +73,7 @@ limitations under the License.
<module name="ParenPad" />
<module name="RedundantImport" />
<module name="RedundantModifier" />
+ <module name="RightCurly" />
<module name="WhitespaceAfter" />
<module name="WhitespaceAround" />
</module>
diff --git a/src/test/java/org/apache/commons/codec/binary/BaseNTestData.java b/src/test/java/org/apache/commons/codec/binary/BaseNTestData.java
index 3bd37e68..314de54b 100644
--- a/src/test/java/org/apache/commons/codec/binary/BaseNTestData.java
+++ b/src/test/java/org/apache/commons/codec/binary/BaseNTestData.java
@@ -174,8 +174,7 @@ public class BaseNTestData {
System.arraycopy(buf, 0, smallerBuf, 0, size);
buf = smallerBuf;
}
- }
- finally {
+ } finally {
in.close();
}
return buf;