You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2021/03/02 17:18:48 UTC

[wicket] branch master updated: ambiguous code

This is an automated email from the ASF dual-hosted git repository.

svenmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new 35c86d3  ambiguous code
35c86d3 is described below

commit 35c86d333b5a09922f9b2807c264a4a61ac9dc51
Author: Martin Funk <ma...@gmail.com>
AuthorDate: Tue Mar 2 18:16:17 2021 +0100

    ambiguous code
    
    this closes #464
---
 .../src/main/java/org/apache/wicket/behavior/AttributeAppender.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java b/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
index 055cf62..8f08a7d 100644
--- a/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
+++ b/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
@@ -149,7 +149,7 @@ public class AttributeAppender extends AttributeModifier
 		// Short circuit when one of the values is empty: return the other value.
 		if (Strings.isEmpty(currentValue))
 		{
-			return appendValue != null ? appendValue : null;
+			return appendValue;
 		}
 		else if (Strings.isEmpty(appendValue))
 		{