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 e54aec9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.16.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-section-taglib</artifactId><version>1.9.1${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-section-taglib</artifactId><version>1.10.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-tag-reference</artifactId><version>1.10.1${POST-SNAPSHOT}</version>
Expand Down
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 e54aec9

Please sign in to comment.