fix warnings
authorNiki Roo <niki@nikiroo.be>
Mon, 4 Mar 2019 05:29:46 +0000 (06:29 +0100)
committerNiki Roo <niki@nikiroo.be>
Mon, 4 Mar 2019 05:29:46 +0000 (06:29 +0100)
src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java
src/be/nikiroo/fanfix/supported/FimfictionApi.java

index ba4748417235ca202a9a5b1dc826bfaf764a8c13..f8ea9d469570cfd4a1a63148b6167bfdf028ac44 100644 (file)
@@ -40,7 +40,6 @@ import be.nikiroo.utils.StringUtils;
 @Deprecated
 public abstract class BasicSupport_Deprecated extends BasicSupport {
        private InputStream in;
-       private URL currentReferer; // with only one 'r', as in 'HTTP'...
 
        // quote chars
        private char openQuote = Instance.getTrans().getCharacter(
@@ -75,6 +74,7 @@ public abstract class BasicSupport_Deprecated extends BasicSupport {
                throw new RuntimeException("should not be used by legacy code");
        }
 
+       @Override
        public Story process(Progress pg) throws IOException {
                return process(getSource(), pg);
        }
index f31f8566e2460b581dfaf78d2ee7509b2eb6a542..a99986f27e1f4e50aa88b1b0de27cbd9bd833cc8 100644 (file)
@@ -212,7 +212,7 @@ class FimfictionApi extends BasicSupport {
 
                List<Entry<String, URL>> urls = new ArrayList<Entry<String, URL>>();
                for (String title : chapterNames.values()) {
-                       urls.add(new AbstractMap.SimpleEntry(title, null));
+                       urls.add(new AbstractMap.SimpleEntry<String, URL>(title, null));
                }
 
                return urls;