diff options
author | David A. Madore <david+git@madore.org> | 2022-04-13 15:22:18 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2022-04-13 15:22:18 +0200 |
commit | c8702ef356664f534bbdddedac489fe5aff5b918 (patch) | |
tree | ac85aced68c05128005d01b5489549379b419b45 | |
parent | b4394756f7564ba9b69d21f66cffcf6d70db9bf5 (diff) | |
download | damlengine-c8702ef356664f534bbdddedac489fe5aff5b918.tar.gz damlengine-c8702ef356664f534bbdddedac489fe5aff5b918.tar.bz2 damlengine-c8702ef356664f534bbdddedac489fe5aff5b918.zip |
Constructor java.lang.Integer() is deprecated: use java.lang.Integer.valueOf() instead.
-rw-r--r-- | org/madore/damlengine/TodoDamlElement.java | 2 | ||||
-rw-r--r-- | org/madore/damlengine/TodoWXrefAttr.java | 4 | ||||
-rw-r--r-- | org/madore/damlengine/TodoWeblogSelectionElement.java | 2 | ||||
-rw-r--r-- | org/madore/damlengine/WeblogSelect.java | 2 |
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); } |