mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
move javadoc comments above the interface definition to make it visible
Fix #670
This commit is contained in:
parent
98df35449a
commit
c798c76ddd
@ -11,13 +11,13 @@ import java.lang.annotation.Documented;
|
|||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
@Documented
|
|
||||||
@Retention(RUNTIME)
|
|
||||||
@Target({METHOD})
|
|
||||||
/**
|
/**
|
||||||
* Use this annotation on a getter method to override the Bean name
|
* Use this annotation on a getter method to override the Bean name
|
||||||
* parser for Bean -> JSONObject mapping. If this annotation is
|
* parser for Bean -> JSONObject mapping. If this annotation is
|
||||||
* present at any level in the class hierarchy, then the method will
|
* present at any level in the class hierarchy, then the method will
|
||||||
* not be serialized from the bean into the JSONObject.
|
* not be serialized from the bean into the JSONObject.
|
||||||
*/
|
*/
|
||||||
|
@Documented
|
||||||
|
@Retention(RUNTIME)
|
||||||
|
@Target({METHOD})
|
||||||
public @interface JSONPropertyIgnore { }
|
public @interface JSONPropertyIgnore { }
|
||||||
|
@ -11,14 +11,14 @@ import java.lang.annotation.Documented;
|
|||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
@Documented
|
|
||||||
@Retention(RUNTIME)
|
|
||||||
@Target({METHOD})
|
|
||||||
/**
|
/**
|
||||||
* Use this annotation on a getter method to override the Bean name
|
* Use this annotation on a getter method to override the Bean name
|
||||||
* parser for Bean -> JSONObject mapping. A value set to empty string <code>""</code>
|
* parser for Bean -> JSONObject mapping. A value set to empty string <code>""</code>
|
||||||
* will have the Bean parser fall back to the default field name processing.
|
* will have the Bean parser fall back to the default field name processing.
|
||||||
*/
|
*/
|
||||||
|
@Documented
|
||||||
|
@Retention(RUNTIME)
|
||||||
|
@Target({METHOD})
|
||||||
public @interface JSONPropertyName {
|
public @interface JSONPropertyName {
|
||||||
/**
|
/**
|
||||||
* @return The name of the property as to be used in the JSON Object.
|
* @return The name of the property as to be used in the JSON Object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user