1# HG changeset patch
2# Parent 44449b0d7ff73bbda13c28f2ebd4e8257c67a181
3diff --git a/src/main/java/org/yaml/snakeyaml/representer/Representer.java b/src/main/java/org/yaml/snakeyaml/representer/Representer.java
4--- a/src/main/java/org/yaml/snakeyaml/representer/Representer.java
5+++ b/src/main/java/org/yaml/snakeyaml/representer/Representer.java
6@@ -15,7 +15,6 @@
7  */
8 package org.yaml.snakeyaml.representer;
9
10-import java.beans.IntrospectionException;
11 import java.util.ArrayList;
12 import java.util.Arrays;
13 import java.util.Iterator;
14@@ -24,7 +23,6 @@
15 import java.util.Set;
16
17 import org.yaml.snakeyaml.DumperOptions.FlowStyle;
18-import org.yaml.snakeyaml.error.YAMLException;
19 import org.yaml.snakeyaml.introspector.Property;
20 import org.yaml.snakeyaml.nodes.MappingNode;
21 import org.yaml.snakeyaml.nodes.Node;
22@@ -45,11 +43,7 @@
23
24     protected class RepresentJavaBean implements Represent {
25         public Node representData(Object data) {
26-            try {
27-                return representJavaBean(getProperties(data.getClass()), data);
28-            } catch (IntrospectionException e) {
29-                throw new YAMLException(e);
30-            }
31+            return representJavaBean(getProperties(data.getClass()), data);
32         }
33     }
34
35@@ -233,8 +227,7 @@
36      *            - JavaBean to inspect the properties
37      * @return properties to serialise
38      */
39-    protected Set<Property> getProperties(Class<? extends Object> type)
40-            throws IntrospectionException {
41+    protected Set<Property> getProperties(Class<? extends Object> type) {
42         return getPropertyUtils().getProperties(type);
43     }
44 }
45