Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
No need to throw an exception. We're good to go.
Browse files Browse the repository at this point in the history
  • Loading branch information
codahale committed Mar 16, 2009
1 parent 006c78b commit e8f523d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/wesabe/xmlson/JsonDocumentFormatter.java
@@ -1,6 +1,5 @@
package com.wesabe.xmlson;

import java.io.IOException;
import java.util.Map.Entry;

import com.google.gson.JsonArray;
Expand All @@ -19,7 +18,7 @@ public class JsonDocumentFormatter implements XmlsonDocumentFormatter {
* @see com.wesabe.xmlson.XmlsonDocumentFormatter#format(com.wesabe.xmlson.XmlsonDocument)
*/
@Override
public String format(XmlsonDocument document) throws IOException {
public String format(XmlsonDocument document) {
JsonObject jsonDocument = serialize(document);
return jsonDocument.toString();
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/wesabe/xmlson/XmlDocumentFormatter.java
@@ -1,6 +1,5 @@
package com.wesabe.xmlson;

import java.io.IOException;
import java.util.Map.Entry;

import nu.xom.Attribute;
Expand All @@ -21,7 +20,7 @@ public class XmlDocumentFormatter implements XmlsonDocumentFormatter {
* @see com.wesabe.xmlson.XmlsonDocumentFormatter#format(com.wesabe.xmlson.XmlsonDocument)
*/
@Override
public String format(XmlsonDocument document) throws IOException {
public String format(XmlsonDocument document) {
Document xmlDocument = serialize(document);
return xmlDocument.toXML();
}
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/com/wesabe/xmlson/XmlsonDocumentFormatter.java
@@ -1,7 +1,5 @@
package com.wesabe.xmlson;

import java.io.IOException;

/**
* An interface for classes which format {@link XmlsonDocument}s.
*
Expand All @@ -14,8 +12,6 @@ public interface XmlsonDocumentFormatter {
* @param document
* the document to be formatted
* @return the formatted document
* @throws IOException
* if something goes wrong
*/
public abstract String format(XmlsonDocument document) throws IOException;
public abstract String format(XmlsonDocument document);
}

0 comments on commit e8f523d

Please sign in to comment.