Add more warnings source to 1.6) and fix warnings
[nikiroo-utils.git] / src / be / nikiroo / fanfix / data / Chapter.java
index 7d0a51b306b62bfc7f821065a0c10e358be82075..86856b0e2c09f5fa6ee1c4faf0f7586c1079dbf7 100644 (file)
@@ -16,6 +16,14 @@ public class Chapter implements Iterable<Paragraph> {
        private List<Paragraph> empty = new ArrayList<Paragraph>();
        private long words;
 
+       /**
+        * Empty constructor, not to use.
+        */
+       @SuppressWarnings("unused")
+       private Chapter() {
+               // for serialisation purposes
+       }
+
        /**
         * Create a new {@link Chapter} with the given information.
         * 
@@ -89,6 +97,7 @@ public class Chapter implements Iterable<Paragraph> {
        /**
         * Get an iterator on the {@link Paragraph}s.
         */
+       @Override
        public Iterator<Paragraph> iterator() {
                return paragraphs == null ? empty.iterator() : paragraphs.iterator();
        }