Commit ec4354eb authored by Liang Ding's avatar Liang Ding

重构 - 清理代码

parent bdd92a87
......@@ -38,7 +38,7 @@ public final class Sitemap {
/**
* 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.
......@@ -53,7 +53,7 @@ public final class Sitemap {
/**
* URLs.
*/
private List<URL> urls = new ArrayList<URL>();
private List<URL> urls = new ArrayList<>();
/**
* Adds the specified url.
......
......@@ -118,8 +118,6 @@ public class PageProcessor {
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()
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