Skip to content

Commit

Permalink
Coercion throws UncheckedIOException instead of IOException
Browse files Browse the repository at this point in the history
for methods that are not specifically I/O-related.
  • Loading branch information
ao-apps committed Oct 6, 2023
1 parent 27c33b6 commit 7995cce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
shortTitle="Changelog"
tocLevels="1"
datePublished="2016-10-30T20:28:28-05:00"
dateModified="2023-10-02T12:28:06Z"
dateModified="2023-10-06T04:22:56Z"
>
<c:set var="latestRelease" value="1.15.2" />
<c:if test="${
Expand All @@ -58,6 +58,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<code>PropertyTag.name</code> attribute is now
<code>java.lang.Object</code> instead of <code>java.lang.String</code>.
</li>
<li><code>ElementTag.evaluateAttributes(…)</code> no longer throws <code>IOException</code>.</li>
</ul>
</changelog:release>
</c:if>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/semanticcms/core/taglib/ElementTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected E getElement() throws IllegalStateException {
* Typically, deferred expressions will be evaluated here.
* Overriding methods must call this implementation.
*/
protected void evaluateAttributes(E element, ELContext elContext) throws JspTagException, IOException {
protected void evaluateAttributes(E element, ELContext elContext) throws JspTagException {
String idStr = nullIfEmpty(resolveValue(id, String.class, elContext));
if (idStr != null) {
element.setId(idStr);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/semanticcms/core/taglib/PropertyTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public MediaType getOutputType() {
}

@Override
public void setName(Object name) throws IOException {
public void setName(Object name) {
name = Name.name.normalize(name);
this.name = (name == null) ? null : Coercion.toString(name);
}
Expand Down

0 comments on commit 7995cce

Please sign in to comment.