Skip to content

Commit

Permalink
Removed trivial Error throwing.
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernAkAManf committed Jun 8, 2013
1 parent 51ab211 commit 4394195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tk/manf/serialisation/ObjectSerialiser.java
Expand Up @@ -109,7 +109,7 @@ public void save(Object o, boolean warn) throws IllegalArgumentException, Illega
* @throws SerialisationException if type is no Unit
* @see SerialisationHandler
*/
public <T> List<T> load(Class<T> type) throws Exception, SerialisationException {
public <T> List<T> load(Class<T> type) throws Exception {
Unit unit = type.getAnnotation(Unit.class);
if (unit == null) {
throw new SerialisationException("Type is no Unit");
Expand All @@ -126,7 +126,7 @@ public <T> List<T> load(Class<T> type) throws Exception, SerialisationException
* @throws SerialisationException if type is no Unit
* @see SerialisationHandler
*/
public <T> T loadStatic(Class<T> type) throws Exception, SerialisationException {
public <T> T loadStatic(Class<T> type) throws Exception {
return load(type).get(0);
}

Expand Down

0 comments on commit 4394195

Please sign in to comment.