(ObjectInputStream in)
| 100 | } |
| 101 | |
| 102 | private void readObject(ObjectInputStream in) throws IOException { |
| 103 | try { |
| 104 | in.defaultReadObject(); |
| 105 | } catch (Exception e) { |
| 106 | // OpenJDK's defaultReadObject() can throw a ClassNotFoundException |
| 107 | throw new IOException(e); |
| 108 | } |
| 109 | properties = new Properties(); |
| 110 | int size = in.readInt(); |
| 111 | for (int i = 0; i < size; i++) try { |
| 112 | properties.put(in.readObject(), in.readObject()); |
| 113 | } catch (ClassNotFoundException e) { |
| 114 | throw new IOException(e); |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | public static void main(String[] args) throws Exception { |
nothing calls this directly
no test coverage detected