Skip to content
This repository was archived by the owner on Jul 16, 2022. It is now read-only.

Commit efe8e11

Browse files
committed
Test: Suppress checkstyle warnings
Signed-off-by: Hiroshi Miura <[email protected]>
1 parent cac15eb commit efe8e11

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/checkstyle/suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
<suppress checks=".*" files="DslIndex.java"/>
1313
<suppress checks=".*" files="DslIndexOrBuilder.java"/>
1414
<suppress checks=".*" files="DslIndexOuterClass.java"/>
15+
<suppress checks="MethodName" files="DslDictionaryTest.java"/>
1516
</suppressions>

src/test/java/io/github/eb4j/dsl/DslDictionaryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ void loadUtf8_BOM_LF_NOEL() throws URISyntaxException, IOException {
216216

217217
@Test
218218
void loadUTF16LE_BOM_LF_NOEL() throws URISyntaxException, IOException {
219-
URL utf16le_lf_nel = this.getClass().getResource("/utf16le_lf_nel.dsl");
220-
Path dictPath = Paths.get(utf16le_lf_nel.toURI());
219+
URL target = this.getClass().getResource("/utf16le_lf_nel.dsl");
220+
Path dictPath = Paths.get(target.toURI());
221221
DslDictionary dictionary = DslDictionary.loadDictionary(dictPath, null);
222222
DumpDslVisitor dumper = new DumpDslVisitor();
223223
Map.Entry<String, String> entry = dictionary.lookup("ace").getEntries(dumper).get(0);

0 commit comments

Comments
 (0)