Can you check, I just pushed a new version up.


Met vriendelijke groeten / Kind regards
Bjorn Monnens


[image: email]  bjorn@topcoders.be <bjorn@topcoders.be>     Zaakvoerder
Topcoders[image: phone]  +32 (0)497 45 16 34[image: twitter]
bjornmonnens<http://www.twitter.com/bjornmonnens>[image:
Bjorn][image: Topcoders]Oostereindestraat 69B-3560 Lumment: +32 (0)89 69 06
10f: +32 (0)89 69 06 19w: http://www.topcoders.bew: http://www.crius.be


On Sat, Jan 18, 2014 at 10:41 PM, bjorn monnens <bjorn@topcoders.be> wrote:

> Ok. I see what you mean.
> Isn't there a way to put this in a unit test as well? That the generated
> file actually gets compilled?
>
>
> Met vriendelijke groeten / Kind regards
> Bjorn Monnens
>
>
> [image: email]  bjorn@topcoders.be <bjorn@topcoders.be>      Zaakvoerder
> Topcoders[image: phone]  +32 (0)497 45 16 34 [image: twitter]
>   bjornmonnens <http://www.twitter.com/bjornmonnens> [image: Bjorn] [image:
> Topcoders] Oostereindestraat 69B-3560 Lumment: +32 (0)89 69 06 10 f: +32
> (0)89 69 06 19w: http://www.topcoders.bew: http://www.crius.be
>
>
> On Sat, Jan 18, 2014 at 10:21 PM, Michal Jedynak <notifications@github.com
> > wrote:
>
>> In
>> src/main/java/pl/mjedynak/idea/plugins/builder/psi/impl/BuilderPsiClassBuilderImpl.java:
>>
>> > @@ -171,8 +182,9 @@ public PsiClass build() {
>> >
>> >          for (PsiField psiFieldsForSetter : psiFieldsForSetters) {
>> >              String fieldName = psiFieldsForSetter.getName();
>> > -            String fieldNameUppercase = StringUtils.capitalize(fieldName);
>> > -            buildMethodText.append(srcClassFieldName).append(".set").append(fieldNameUppercase).append("(").append(fieldName).append(");");
>> > +            //String fieldNameUppercase = StringUtils.capitalize(
>> fieldName);
>> > +            String fieldNameLowercase = StringUtils.lowerCase(fieldName);
>> > +            buildMethodText.append(srcClassFieldName).append(".").append(fieldNameLowercase).append("(").append(fieldName).append(");");
>>
>> You've changed append '.set' to '.' which makes the generated builder
>> code not compiling if the field is private.
>>
>> —
>> Reply to this email directly or view it on GitHub<https://github.com/mjedynak/Builder-Generator/pull/7/files#r8989351>
>> .
>>
>
>