You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by BruceKuiLiu <gi...@git.apache.org> on 2017/10/11 09:57:19 UTC

[GitHub] ant pull request #41: Fix the problem of instanceof test always return true.

GitHub user BruceKuiLiu opened a pull request:

    https://github.com/apache/ant/pull/41

    Fix the problem of instanceof test always return true.

    This instanceof test will always return true because DataType is the superclass of variable nested's class ResourceComparator. The variable nested is not initialized, it would be better to do a null test rather than an instanceof test.
    http://findbugs.sourceforge.net/bugDescriptions.html#BC_VACUOUS_INSTANCEOF

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/BruceKuiLiu/ant master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ant/pull/41.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #41
    
----
commit 750db910163e364b90346bfa13a6054e470ffd57
Author: Kui LIU <br...@gmail.com>
Date:   2017-10-11T09:54:00Z

    Fix the problem of instanceof test always return true.
    
    This instanceof test will always return true because DataType is the superclass of variable nested's class ResourceComparator. The variable nested is not initialized, it would be better to do a null test rather than an instanceof test.
    http://findbugs.sourceforge.net/bugDescriptions.html#BC_VACUOUS_INSTANCEOF

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


[GitHub] ant pull request #41: Fix the problem of instanceof test always return true.

Posted by BruceKuiLiu <gi...@git.apache.org>.
Github user BruceKuiLiu closed the pull request at:

    https://github.com/apache/ant/pull/41


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


[GitHub] ant issue #41: Fix the problem of instanceof test always return true.

Posted by BruceKuiLiu <gi...@git.apache.org>.
Github user BruceKuiLiu commented on the issue:

    https://github.com/apache/ant/pull/41
  
    Thanks.
    First name: Kui, 
    Last name: LIU.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


[GitHub] ant issue #41: Fix the problem of instanceof test always return true.

Posted by bodewig <gi...@git.apache.org>.
Github user bodewig commented on the issue:

    https://github.com/apache/ant/pull/41
  
    Many thanks, merged.
    
    I'd like to add your name to the contributors list, the `contributors,xml` file wants a first and a last name and I'm not completely sure what to put where. :-)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org