You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2021/11/13 13:39:07 UTC

[ws-neethi] branch master updated: Remove getClass() call in findAssertionBuilderTarget().

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

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-neethi.git


The following commit(s) were added to refs/heads/master by this push:
     new 3131dbd  Remove getClass() call in findAssertionBuilderTarget().
     new 54eb48d  Merge pull request #1 from hthu/master
3131dbd is described below

commit 3131dbd2a48faae88c1ba0de306e863cbdefaf46
Author: Haitang Hu <ne...@gmail.com>
AuthorDate: Thu Nov 11 20:15:31 2021 -0800

    Remove getClass() call in findAssertionBuilderTarget().
    
    c is already a Class object, calling getClass() on a Class object isn't intended here -- instead, the intention is to recursively find the super class from c.
---
 src/main/java/org/apache/neethi/AssertionBuilderFactoryImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/neethi/AssertionBuilderFactoryImpl.java b/src/main/java/org/apache/neethi/AssertionBuilderFactoryImpl.java
index 31c3a09..dc8edc7 100644
--- a/src/main/java/org/apache/neethi/AssertionBuilderFactoryImpl.java
+++ b/src/main/java/org/apache/neethi/AssertionBuilderFactoryImpl.java
@@ -146,7 +146,7 @@ public class AssertionBuilderFactoryImpl implements AssertionBuilderFactory {
                 return (Class<?>)pt.getActualTypeArguments()[0];
             }
         }
-        if (c.getClass().getSuperclass() != null) {
+        if (c.getSuperclass() != null) {
             return findAssertionBuilderTarget(c.getSuperclass());
         }
         return null;