aboutsummaryrefslogtreecommitdiff
path: root/ime/base
diff options
context:
space:
mode:
authorMenny Even Danan <menny@evendanan.net>2020-06-03 05:23:08 +0000
committerMenny Even Danan <menny@evendanan.net>2020-06-03 05:23:08 +0000
commit58bb689d8b45f13caa1ed40e479064ba9355b01b (patch)
tree3f292ff827b59b2341f4c9eaf832f048a218bd87 /ime/base
parent3ba20363fc96061ddef9fdbc39329696dc77ff66 (diff)
downloadAnySoftKeyboard-58bb689d8b45f13caa1ed40e479064ba9355b01b.tar.gz
AnySoftKeyboard-58bb689d8b45f13caa1ed40e479064ba9355b01b.tar.bz2
Bump Error Prone
Diffstat (limited to 'ime/base')
-rw-r--r--ime/base/src/main/java/com/anysoftkeyboard/utils/XmlWriter.java10
-rw-r--r--ime/base/src/test/java/com/anysoftkeyboard/utils/XmlWriterTest.java4
2 files changed, 3 insertions, 11 deletions
diff --git a/ime/base/src/main/java/com/anysoftkeyboard/utils/XmlWriter.java b/ime/base/src/main/java/com/anysoftkeyboard/utils/XmlWriter.java
index a2bc3ccab..20999528b 100644
--- a/ime/base/src/main/java/com/anysoftkeyboard/utils/XmlWriter.java
+++ b/ime/base/src/main/java/com/anysoftkeyboard/utils/XmlWriter.java
@@ -46,11 +46,7 @@ public class XmlWriter {
private boolean mJustWroteText;
private boolean mClosed; // is the current node mClosed...
- /**
- * Create an XmlWriter on top of an existing java.io.Writer.
- *
- * @throws IOException
- */
+ /** Create an XmlWriter on top of an existing java.io.Writer. */
public XmlWriter(
Writer writer, boolean takeOwnership, int indentingOffset, boolean addXmlPrefix)
throws IOException {
@@ -126,8 +122,6 @@ public class XmlWriter {
/**
* End the current entity. This will throw an exception if it is called when there is not a
* currently open entity.
- *
- * @throws IOException
*/
public XmlWriter endEntity() throws IOException {
if (mStack.size() == 0) {
@@ -155,8 +149,6 @@ public class XmlWriter {
/**
* Close this mWriter. It does not close the underlying mWriter, but does throw an exception if
* there are as yet unclosed tags.
- *
- * @throws IOException
*/
public void close() throws IOException {
if (mThisIsWriterOwner) {
diff --git a/ime/base/src/test/java/com/anysoftkeyboard/utils/XmlWriterTest.java b/ime/base/src/test/java/com/anysoftkeyboard/utils/XmlWriterTest.java
index f686b36d6..2e13f7cad 100644
--- a/ime/base/src/test/java/com/anysoftkeyboard/utils/XmlWriterTest.java
+++ b/ime/base/src/test/java/com/anysoftkeyboard/utils/XmlWriterTest.java
@@ -30,7 +30,7 @@ public class XmlWriterTest {
+ " <phone>4254343</phone>\n"
+ " <bob/>\n"
+ "</person>\n",
- writer.getBuffer().toString());
+ writer.toString());
}
@Test
@@ -53,6 +53,6 @@ public class XmlWriterTest {
+ " <phone>4254343</phone>\n"
+ " <bob/>\n"
+ " </person>\n",
- writer.getBuffer().toString());
+ writer.toString());
}
}