Skip to content

Commit 6061e1c

Browse files
author
JsonZou
committed
1.删除误用注释
1 parent 67ec6b3 commit 6061e1c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/com/github/jsonzou/jmockdata/mocker/BeanMocker.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ public List<Field> getMockFields(Class<?>clazz, DataConfig mockConfig){
108108
}
109109
return fields;
110110
}
111+
112+
/**
113+
* 是否支持模拟此类
114+
* @param clazz
115+
* @return
116+
*/
111117
private boolean isSupportMock(Class<?>clazz){
112118
boolean unSupport = clazz == Object.class
113119
|| clazz.isInterface()
@@ -125,6 +131,13 @@ private boolean isSupportMock(Class<?>clazz){
125131
return !unSupport;
126132

127133
}
134+
135+
/**
136+
* 是否支持模拟此属性
137+
* @param mockConfig
138+
* @param field
139+
* @return
140+
*/
128141
private boolean isSupportMock(DataConfig mockConfig, Field field){
129142
if (field.isAnnotationPresent(MockIgnore.class)) {
130143
return false;

0 commit comments

Comments
 (0)