Skip to content

Commit 7b47c94

Browse files
committed
Remove unnecessary throws clause from returnMap
1 parent e159cbf commit 7b47c94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/PropertiesFile.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void save() {
116116

117117
/**
118118
* Returns a Map of all <code>key=value</code> properties in the file as
119-
* <code>&lt;key (java.lang.String), value (java.lang.String)></code> <br />
119+
* <code>&lt;key (java.lang.String), value (java.lang.String)></code>. <br />
120120
* <br />
121121
* Example: <blockquote>
122122
*
@@ -136,10 +136,9 @@ public void save() {
136136
* @return <code>map</code> - Simple Map HashMap of the entire
137137
* <code>key=value</code> as
138138
* <code>&lt;key (java.lang.String), value (java.lang.String)></code>
139-
* @throws Exception
140-
* If the properties file doesn't exist.
141139
*/
142-
public Map<String, String> returnMap() throws Exception {
140+
@SuppressWarnings("unchecked")
141+
public Map<String, String> returnMap() {
143142
return (Map<String, String>) props.clone();
144143
}
145144

0 commit comments

Comments
 (0)