From f4ac73ecbb0a4b112a01f4e417d4c89fb71afa73 Mon Sep 17 00:00:00 2001 From: Olyutorskii Date: Tue, 11 Jun 2019 22:25:46 +0900 Subject: [PATCH] follow naming conventions. --- config/pmd/pmdrules.xml | 13 ++++++++++++- .../java/jp/sfjp/mikutoga/bin/export/BinaryExporter.java | 12 ++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/config/pmd/pmdrules.xml b/config/pmd/pmdrules.xml index ccc7751..1dc0902 100644 --- a/config/pmd/pmdrules.xml +++ b/config/pmd/pmdrules.xml @@ -11,7 +11,7 @@ xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 - http://pmd.sourceforge.net/ruleset_2_0_0.xsd" + https://pmd.sourceforge.io/ruleset_2_0_0.xsd" name="Custom ruleset" > @@ -31,12 +31,22 @@ + + + + + + + + + + @@ -66,6 +76,7 @@ + diff --git a/src/main/java/jp/sfjp/mikutoga/bin/export/BinaryExporter.java b/src/main/java/jp/sfjp/mikutoga/bin/export/BinaryExporter.java index faced0c..63bcf7c 100644 --- a/src/main/java/jp/sfjp/mikutoga/bin/export/BinaryExporter.java +++ b/src/main/java/jp/sfjp/mikutoga/bin/export/BinaryExporter.java @@ -70,8 +70,8 @@ public class BinaryExporter implements Closeable, Flushable{ private final byte[] barray; - private final TextExporter texporter_w31j; - private final TextExporter texporter_u16le; + private final TextExporter texporterW31j; + private final TextExporter texporterU16le; private final ByteArrayOutputStream xos; @@ -88,8 +88,8 @@ public class BinaryExporter implements Closeable, Flushable{ this.barray = new byte[BUFSZ_PRIM]; - this.texporter_w31j = new TextExporter(CS_WIN31J); - this.texporter_u16le = new TextExporter(CS_UTF16LE); + this.texporterW31j = new TextExporter(CS_WIN31J); + this.texporterU16le = new TextExporter(CS_UTF16LE); this.xos = new ByteArrayOutputStream(); return; @@ -314,7 +314,7 @@ public class BinaryExporter implements Closeable, Flushable{ int encodedSize; try{ encodedSize = - this.texporter_w31j.encodeToByteStream(text, this.xos); + this.texporterW31j.encodeToByteStream(text, this.xos); }catch(CharacterCodingException e){ throw new IllegalTextExportException(ERRMSG_ILLENC, e); } @@ -356,7 +356,7 @@ public class BinaryExporter implements Closeable, Flushable{ int encodedSize; try{ encodedSize = - this.texporter_u16le.encodeToByteStream(text, this.xos); + this.texporterU16le.encodeToByteStream(text, this.xos); }catch(CharacterCodingException e){ assert false; // これはない throw new IllegalTextExportException(ERRMSG_ILLENC, e); -- 2.11.0