Commit ec4354eb authored by Liang Ding's avatar Liang Ding

重构 - 清理代码

parent bdd92a87
...@@ -38,7 +38,7 @@ public final class Sitemap { ...@@ -38,7 +38,7 @@ public final class Sitemap {
/** /**
* Start document. * Start document.
*/ */
private static final String START_DOCUMENT = "<?xml version='1.0' encoding='UTF-8'?>"; private static final String START_DOCUMENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
/** /**
* Start URL set element. * Start URL set element.
...@@ -53,7 +53,7 @@ public final class Sitemap { ...@@ -53,7 +53,7 @@ public final class Sitemap {
/** /**
* URLs. * URLs.
*/ */
private List<URL> urls = new ArrayList<URL>(); private List<URL> urls = new ArrayList<>();
/** /**
* Adds the specified url. * Adds the specified url.
......
...@@ -118,8 +118,6 @@ public class PageProcessor { ...@@ -118,8 +118,6 @@ public class PageProcessor {
Skins.fillLangs(preference.getString(Option.ID_C_LOCALE_STRING), (String) request.getAttribute(Keys.TEMAPLTE_DIR_NAME), dataModel); Skins.fillLangs(preference.getString(Option.ID_C_LOCALE_STRING), (String) request.getAttribute(Keys.TEMAPLTE_DIR_NAME), dataModel);
final Map<String, String> langs = langPropsService.getAll(Latkes.getLocale());
// See PermalinkFilter#dispatchToArticleOrPageProcessor() // See PermalinkFilter#dispatchToArticleOrPageProcessor()
final JSONObject page = (JSONObject) request.getAttribute(Page.PAGE); final JSONObject page = (JSONObject) request.getAttribute(Page.PAGE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment