Skip to content

Commit fcd4837

Browse files
committed
Update documentation.
1 parent 75cc39b commit fcd4837

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

httprpc-server/src/main/java/org/httprpc/Description.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121

2222
/**
2323
* Annotation that associates a description with a service class, method,
24-
* parameter, or data structure.
24+
* parameter, or data type.
2525
*/
2626
@Retention(RetentionPolicy.RUNTIME)
2727
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
2828
public @interface Description {
2929
/**
3030
* @return
31-
* The description of the service class, method, parameter, or data
32-
* structure.
31+
* The description of the service class, method, parameter, or data type.
3332
*/
3433
String value();
3534
}

httprpc-server/src/main/java/org/httprpc/WebService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected URLConnection openConnection(URL url) {
121121

122122
private Resource root = null;
123123

124-
private Map<Class<?>, Map<String, BeanAdapter.Property>> structures = new TreeMap<>(Comparator.comparing(Class::getSimpleName));
124+
private Map<Class<?>, Map<String, BeanAdapter.Property>> dataTypes = new TreeMap<>(Comparator.comparing(Class::getSimpleName));
125125

126126
private ThreadLocal<HttpServletRequest> request = new ThreadLocal<>();
127127
private ThreadLocal<HttpServletResponse> response = new ThreadLocal<>();
@@ -667,7 +667,7 @@ private void describeService(HttpServletRequest request, HttpServletResponse res
667667

668668
describeResource(request.getServletPath(), root, xmlStreamWriter);
669669

670-
for (Map.Entry<Class<?>, Map<String, BeanAdapter.Property>> typeEntry : structures.entrySet()) {
670+
for (Map.Entry<Class<?>, Map<String, BeanAdapter.Property>> typeEntry : dataTypes.entrySet()) {
671671
Class<?> type = typeEntry.getKey();
672672

673673
String name = type.getSimpleName();
@@ -972,10 +972,10 @@ public Type getOwnerType() {
972972
}
973973
}, xmlStreamWriter);
974974
} else {
975-
if (!structures.containsKey(type)) {
975+
if (!dataTypes.containsKey(type)) {
976976
Map<String, BeanAdapter.Property> properties = BeanAdapter.getProperties(type);
977977

978-
structures.put(type, properties);
978+
dataTypes.put(type, properties);
979979

980980
if (type.isInterface()) {
981981
Class<?>[] interfaces = type.getInterfaces();

0 commit comments

Comments
 (0)