[forge-users] addon creation

Daniel Cunha danielsoro at gmail.com
Mon Dec 29 12:16:40 EST 2014


Oh..

Sorry. I confuse the methods. Sorry! Forget this.

On Mon, Dec 29, 2014 at 4:32 PM, Daniel Cunha <danielsoro at gmail.com> wrote:

> 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)
>



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


More information about the forge-users mailing list