Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/main/java/org/htmlunit/css/CssPixelValueConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ else if (value.endsWith("pc")) {
else if (value.endsWith("ch")) {
i = i * 8;
}
else if (value.endsWith("ch")) {
i = i * 8;
}
else if (value.endsWith("vh")
|| value.endsWith("vmin")) {
// this matches also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public int getOffsetWidth() {
if ("collapse".equals(style.getStyleAttribute(StyleAttributes.Definition.BORDER_COLLAPSE, true))) {
final HtmlTableRow row = getRow();
if (row != null) {
w -= 0.5 * style.getBorderLeftValue();
w -= 0.5 * style.getBorderRightValue();
w -= 0.5f * style.getBorderLeftValue();
w -= 0.5f * style.getBorderRightValue();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@
@SuppressWarnings("PMD.UnusedLocalVariable")
public void close() throws IOException {
if (imageReader_ != null) {
try {
try (ImageInputStream stream = (ImageInputStream) imageReader_.getInput()) {
// nothing
}
try (ImageInputStream stream = (ImageInputStream) imageReader_.getInput()) {

Check warning on line 103 in src/main/java/org/htmlunit/platform/image/ImageIOImageData.java

View workflow job for this annotation

GitHub Actions / PMD

[PMD] reported by reviewdog 🐶 Empty try-with-resources statement. Rename the resource to `ignored`, `unused` or `_` (Java 22+). Raw Output: {"level":"warning","locations":[{"physicalLocation":{"artifactLocation":{"uri":"file:///home/runner/work/htmlunit/htmlunit/src/main/java/org/htmlunit/platform/image/ImageIOImageData.java"},"region":{"endColumn":14,"endLine":109,"startColumn":13,"startLine":103}}}],"message":{"text":"Empty try-with-resources statement. Rename the resource to `ignored`, `unused` or `_` (Java 22+)."},"ruleId":"EmptyControlStatement","ruleIndex":303}
// nothing
}
finally {
imageReader_.setInput(null);
Expand Down
Loading