[forge-users] addon creation

Daniel Cunha danielsoro at gmail.com
Mon Dec 29 11:32:48 EST 2014


This method is an abstract method.

So, it's very common that IDE's implement this method with return null.
In some languages if (null) == false.

So, Forge can in this case interpret null == false.
I prefer that I receive a BANG! (as Antonio talking) NullPointerException.

 WDYT?

On Mon, Dec 29, 2014 at 4:18 PM, George Gastaldi <ggastald at redhat.com>
wrote:

> I am sorry, I don't understand your idea, can you elaborate more?
>
>
>
> Em 29/12/2014, às 14:05, Daniel Cunha <danielsoro at gmail.com> escreveu:
>
> George,
>
> this case.. Can forge assume which that's is false? (Is a bad suggestion?)
>
> On Mon, Dec 29, 2014 at 4:00 PM, George Gastaldi <ggastald at redhat.com>
> wrote:
>
>> There is an error in your code:
>>
>> https://github.com/Fazerty/jbfex-addon/blob/master/src/main/java/org/jbfex/addon/commands/JbfexMailCommand.java#L129
>>
>> You are returning a null ProjectFactory, that's why the error happens.
>> _______________________________________________
>> forge-users mailing list
>> forge-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-users
>>
>
>
>
> --
> Daniel Cunha (soro)
>
> _______________________________________________
> forge-users mailing list
> forge-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-users
>
>
> _______________________________________________
> forge-users mailing list
> forge-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-users
>



-- 
Daniel Cunha (soro)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-users/attachments/20141229/0b1986bf/attachment.html 


More information about the forge-users mailing list