summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org/madore/damlengine/TodoDamlElement.java2
-rw-r--r--org/madore/damlengine/TodoWXrefAttr.java4
-rw-r--r--org/madore/damlengine/TodoWeblogSelectionElement.java2
-rw-r--r--org/madore/damlengine/WeblogSelect.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/org/madore/damlengine/TodoDamlElement.java b/org/madore/damlengine/TodoDamlElement.java
index 50c39bb..f5b4a7f 100644
--- a/org/madore/damlengine/TodoDamlElement.java
+++ b/org/madore/damlengine/TodoDamlElement.java
@@ -113,7 +113,7 @@ public final class TodoDamlElement extends TodoDefaultElement {
final WeblogSummary wsum = WeblogSummary.getSummary(ctx.dc);
if ( wsum != null ) {
final WeblogSummary.EntrySummary esum
- = wsum.entries.get(new Integer(((Context.WeblogSingleSelectionContext)(ctx.wsc)).number));
+ = wsum.entries.get(Integer.valueOf(((Context.WeblogSingleSelectionContext)(ctx.wsc)).number));
if ( esum != null && esum.title != null ) {
meta = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "meta");
meta.setAttributeNS(null, "name", "twitter:title");
diff --git a/org/madore/damlengine/TodoWXrefAttr.java b/org/madore/damlengine/TodoWXrefAttr.java
index 2f0ca3c..68e5c54 100644
--- a/org/madore/damlengine/TodoWXrefAttr.java
+++ b/org/madore/damlengine/TodoWXrefAttr.java
@@ -30,9 +30,9 @@ public class TodoWXrefAttr extends TodoAttr {
+ (wxrefStr.equals("##weblog-selection-older") ? -1 : 1);
WeblogSummary sum = WeblogSummary.getSummary(ctx.dc);
if ( sum != null && sum.entries != null
- && sum.entries.containsKey(new Integer(trgt)) ) {
+ && sum.entries.containsKey(Integer.valueOf(trgt)) ) {
WeblogSummary.EntrySummary ent
- = sum.entries.get(new Integer(trgt));
+ = sum.entries.get(Integer.valueOf(trgt));
String target = "#d." + ent.date + "."
+ String.format("%04d", ent.id);
this.owner.removeAttributeNode(this.attr);
diff --git a/org/madore/damlengine/TodoWeblogSelectionElement.java b/org/madore/damlengine/TodoWeblogSelectionElement.java
index 437da1f..e7cbd62 100644
--- a/org/madore/damlengine/TodoWeblogSelectionElement.java
+++ b/org/madore/damlengine/TodoWeblogSelectionElement.java
@@ -173,7 +173,7 @@ public final class TodoWeblogSelectionElement extends TodoDefaultElement {
if ( wsum == null || wsum.entries == null )
throw new IllegalStateException("failed to obtain weblog summary for weblog-selection-single-title");
WeblogSummary.EntrySummary esum
- = wsum.entries.get(new Integer(((Context.WeblogSingleSelectionContext)(ctx.wsc)).number));
+ = wsum.entries.get(Integer.valueOf(((Context.WeblogSingleSelectionContext)(ctx.wsc)).number));
if ( esum == null )
throw new IllegalStateException("tried weblog-selection-single-title on inexistent entry");
{
diff --git a/org/madore/damlengine/WeblogSelect.java b/org/madore/damlengine/WeblogSelect.java
index 4e759cc..d6ede8b 100644
--- a/org/madore/damlengine/WeblogSelect.java
+++ b/org/madore/damlengine/WeblogSelect.java
@@ -48,7 +48,7 @@ public final class WeblogSelect {
while ( selRes.next() ) {
int id = selRes.getInt(1);
String content = selRes.getString(2);
- wsc.sel.add(new Integer(id));
+ wsc.sel.add(Integer.valueOf(id));
wsc.xmlData.add(content);
}