Skip to content

Commit e3efe87

Browse files
committed
Add missing Javadoc @throws tags. (2f57d06)
1 parent 2f57d06 commit e3efe87

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

metafix/src/main/java/org/metafacture/metafix/FixStandaloneSetup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public static Fix parseFix(final Reader fixDef) {
7272
* @param suffix the file suffix
7373
*
7474
* @return the path to the temporary file
75+
*
76+
* @throws IOException if an I/O error occurs
7577
*/
7678
public static String absPathToTempFile(final Reader fixDef, final String suffix) throws IOException {
7779
// TODO: avoid temp file creation

metafix/src/main/java/org/metafacture/metafix/JsonValue.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public interface JsonValue {
4343
* Converts the value to JSON without pretty printing.
4444
*
4545
* @return the JSON serialization
46+
*
47+
* @throws IOException if an I/O error occurs
4648
*/
4749
default String toJson() throws IOException {
4850
return toJson(false);
@@ -54,6 +56,8 @@ default String toJson() throws IOException {
5456
* @param prettyPrinting true if pretty printing should be used
5557
*
5658
* @return the JSON serialization
59+
*
60+
* @throws IOException if an I/O error occurs
5761
*/
5862
default String toJson(final boolean prettyPrinting) throws IOException {
5963
final StringWriter writer = new StringWriter();
@@ -88,6 +92,8 @@ public Parser() {
8892
* @param source the JSON serialization
8993
*
9094
* @return the deserialized value
95+
*
96+
* @throws IOException if an I/O error occurs
9197
*/
9298
public Value parse(final String source) throws IOException {
9399
return parse(MAPPER.readTree(source));

metafix/src/main/java/org/metafacture/metafix/Metafix.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public Metafix(final Map<String, String> vars) {
125125
* Creates an instance of {@link Metafix}.
126126
*
127127
* @param fixDef the Fix definition
128+
*
129+
* @throws IOException if an I/O error occurs
128130
*/
129131
public Metafix(final String fixDef) throws IOException {
130132
this(fixDef, NO_VARS);
@@ -135,6 +137,8 @@ public Metafix(final String fixDef) throws IOException {
135137
*
136138
* @param fixDef the Fix definition
137139
* @param vars the Fix variables as a Map
140+
*
141+
* @throws IOException if an I/O error occurs
138142
*/
139143
public Metafix(final String fixDef, final Map<String, String> vars) throws IOException {
140144
init(vars);

0 commit comments

Comments
 (0)