From 75919f2da8b8cd87f5f9d237989410499f7bb98d Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 12 Sep 2019 07:18:37 +0200 Subject: [PATCH] MetaData: improve jDoc, fix deprecated --- changelog.md | 2 +- src/be/nikiroo/fanfix/data/MetaData.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index c4c0aa00..195310b3 100644 --- a/changelog.md +++ b/changelog.md @@ -17,7 +17,7 @@ - FimFictionAPI: fix NPE - remote: encryption mode changed because Google - remote: not compatible with 2.x -- remote: now use password from config file +- remote: can now use password from config file - remote: worse perfs but much better memory usage - remote: log now includes the time of events diff --git a/src/be/nikiroo/fanfix/data/MetaData.java b/src/be/nikiroo/fanfix/data/MetaData.java index 1781d869..2c40beb1 100644 --- a/src/be/nikiroo/fanfix/data/MetaData.java +++ b/src/be/nikiroo/fanfix/data/MetaData.java @@ -112,6 +112,8 @@ public class MetaData implements Cloneable, Comparable, Serializable { /** * The story resume (a.k.a. description). + *

+ * This can be NULL if we don't have a resume for this {@link Story}. * * @return the resume */ @@ -470,7 +472,7 @@ public class MetaData implements Cloneable, Comparable, Serializable { String cover = "none"; if (getCover() != null) { - cover = StringUtils.formatNumber(getCover().getData().length) + cover = StringUtils.formatNumber(getCover().getSize()) + "bytes"; } -- 2.27.0