question about @Field annotation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

question about @Field annotation

Koji Sekiguchi
According to Wiki, @Field annotation can be applied to a field or a
setter method:

http://wiki.apache.org/solr/Solrj#head-da3dbcb051833cb4d80fca6a306d5dd7d46be5a3

If so, I think ElementType.TYPE can be removed from @Field:

-@Target({FIELD, METHOD, TYPE})
+@Target({FIELD, METHOD})
@Retention(RUNTIME)
public @interface Field {
public static final String DEFAULT ="#default";

thought?

Koji

Reply | Threaded
Open this post in threaded view
|

Re: question about @Field annotation

Noble Paul നോബിള്‍  नोब्ळ्
yes right.
it must be removed

On Sun, Sep 7, 2008 at 4:51 PM, Koji Sekiguchi <[hidden email]> wrote:

> According to Wiki, @Field annotation can be applied to a field or a
> setter method:
>
> http://wiki.apache.org/solr/Solrj#head-da3dbcb051833cb4d80fca6a306d5dd7d46be5a3
>
> If so, I think ElementType.TYPE can be removed from @Field:
>
> -@Target({FIELD, METHOD, TYPE})
> +@Target({FIELD, METHOD})
> @Retention(RUNTIME)
> public @interface Field {
> public static final String DEFAULT ="#default";
>
> thought?
>
> Koji
>
>



--
--Noble Paul
Reply | Threaded
Open this post in threaded view
|

Re: question about @Field annotation

Koji Sekiguchi
removed ElementType.TYPE and committed on trunk and branch-1.3.

Thank you,

Koji

> yes right.
> it must be removed
>
> On Sun, Sep 7, 2008 at 4:51 PM, Koji Sekiguchi <[hidden email]> wrote:
>  
>> According to Wiki, @Field annotation can be applied to a field or a
>> setter method:
>>
>> http://wiki.apache.org/solr/Solrj#head-da3dbcb051833cb4d80fca6a306d5dd7d46be5a3
>>
>> If so, I think ElementType.TYPE can be removed from @Field:
>>
>> -@Target({FIELD, METHOD, TYPE})
>> +@Target({FIELD, METHOD})
>> @Retention(RUNTIME)
>> public @interface Field {
>> public static final String DEFAULT ="#default";
>>
>> thought?
>>
>> Koji
>>
>>
>>    
>
>
>
>