Skip to content

Commit

Permalink
LDEV-4634 - remove unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Aug 14, 2023
1 parent ec1bc7f commit dae305b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/lucee/runtime/net/http/HttpUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public static Pair<String, String>[] cloneHeaders(HttpServletRequest req) {
name = e.nextElement();
ee = req.getHeaders(name);
while (ee.hasMoreElements()) {
val = (String) ee.nextElement();
val = ee.nextElement();
if (val != null) headers.add(new Pair<String, String>(name, val));
}
}
return (Pair<String, String>[]) headers.toArray(new Pair[headers.size()]);
return headers.toArray(new Pair[headers.size()]);
}

public static Struct getAttributesAsStruct(HttpServletRequest req) {
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.0.0.527-SNAPSHOT"/>
<property name="version" value="6.0.0.528-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.0.0.527-SNAPSHOT</version>
<version>6.0.0.528-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit dae305b

Please sign in to comment.