Commit ffece3dd7bd074cc16833bbf7ba4c7133857255a

Authored by unknown
1 parent 5774b5f5
Exists in master

1.remove objectutil print code

@@ -62,7 +62,7 @@ uploadArchives { @@ -62,7 +62,7 @@ uploadArchives {
62 authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) 62 authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
63 } 63 }
64 pom.project { 64 pom.project {
65 - version '1.1.116' 65 + version '1.1.118'
66 artifactId ARTIFACT_Id 66 artifactId ARTIFACT_Id
67 groupId GROUP_ID 67 groupId GROUP_ID
68 packaging TYPE 68 packaging TYPE
src/main/java/com/taover/util/UtilObject.java
@@ -45,10 +45,7 @@ public class UtilObject { @@ -45,10 +45,7 @@ public class UtilObject {
45 Object tempValue = destField[i].get(dest); 45 Object tempValue = destField[i].get(dest);
46 destField[i].set(newDest, tempValue); 46 destField[i].set(newDest, tempValue);
47 } 47 }
48 - } catch (Exception e2) {  
49 - // TODO Auto-generated catch block  
50 - e2.printStackTrace();  
51 - } 48 + } catch (Exception e2) { }
52 } 49 }
53 50
54 //遍历源field数组,处理源field数组 51 //遍历源field数组,处理源field数组
@@ -62,10 +59,7 @@ public class UtilObject { @@ -62,10 +59,7 @@ public class UtilObject {
62 sourceField[i].setAccessible(true); 59 sourceField[i].setAccessible(true);
63 try { 60 try {
64 sourceFieldValue = sourceField[i].get(source); 61 sourceFieldValue = sourceField[i].get(source);
65 - } catch (Exception e1) {  
66 - // TODO Auto-generated catch block  
67 - e1.printStackTrace();  
68 - } 62 + } catch (Exception e1) { }
69 63
70 //检查是否在exceptFieldName中 64 //检查是否在exceptFieldName中
71 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){ 65 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){
@@ -95,10 +89,7 @@ public class UtilObject { @@ -95,10 +89,7 @@ public class UtilObject {
95 if(isNewInstance){ 89 if(isNewInstance){
96 destField[nameIndex].set(newDest, sourceFieldValue); 90 destField[nameIndex].set(newDest, sourceFieldValue);
97 } 91 }
98 - } catch (Exception e) {  
99 - // TODO Auto-generated catch block  
100 - e.printStackTrace();  
101 - } 92 + } catch (Exception e) { }
102 } 93 }
103 } 94 }
104 } 95 }
@@ -146,9 +137,7 @@ public class UtilObject { @@ -146,9 +137,7 @@ public class UtilObject {
146 sourceField[i].setAccessible(true); 137 sourceField[i].setAccessible(true);
147 try { 138 try {
148 sourceFieldValue = sourceField[i].get(source); 139 sourceFieldValue = sourceField[i].get(source);
149 - } catch (Exception e1) {  
150 - e1.printStackTrace();  
151 - } 140 + } catch (Exception e1) { }
152 141
153 //检查是否在exceptFieldName中 142 //检查是否在exceptFieldName中
154 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){ 143 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){
@@ -175,9 +164,7 @@ public class UtilObject { @@ -175,9 +164,7 @@ public class UtilObject {
175 destField[nameIndex].setAccessible(true); 164 destField[nameIndex].setAccessible(true);
176 try { 165 try {
177 destField[nameIndex].set(newDest, sourceFieldValue); 166 destField[nameIndex].set(newDest, sourceFieldValue);
178 - } catch (Exception e) {  
179 - e.printStackTrace();  
180 - } 167 + } catch (Exception e) { }
181 } 168 }
182 } 169 }
183 } 170 }
@@ -213,10 +200,7 @@ public class UtilObject { @@ -213,10 +200,7 @@ public class UtilObject {
213 sourceField[i].setAccessible(true); 200 sourceField[i].setAccessible(true);
214 try { 201 try {
215 sourceFieldValue = sourceField[i].get(source); 202 sourceFieldValue = sourceField[i].get(source);
216 - } catch (Exception e1) {  
217 - // TODO Auto-generated catch block  
218 - e1.printStackTrace();  
219 - } 203 + } catch (Exception e1) { }
220 204
221 //检查是否在exceptFieldName中 205 //检查是否在exceptFieldName中
222 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){ 206 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){
@@ -261,10 +245,7 @@ public class UtilObject { @@ -261,10 +245,7 @@ public class UtilObject {
261 sourceField[i].setAccessible(true); 245 sourceField[i].setAccessible(true);
262 try { 246 try {
263 sourceFieldValue = sourceField[i].get(source); 247 sourceFieldValue = sourceField[i].get(source);
264 - } catch (Exception e1) {  
265 - // TODO Auto-generated catch block  
266 - e1.printStackTrace();  
267 - } 248 + } catch (Exception e1) { }
268 249
269 //检查是否在exceptFieldName中 250 //检查是否在exceptFieldName中
270 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){ 251 if(-1 != UtilString.getStringIndex(sourceFieldName, exceptFieldNameArray)){
@@ -340,9 +321,7 @@ public class UtilObject { @@ -340,9 +321,7 @@ public class UtilObject {
340 321
341 keyField.setAccessible(true); 322 keyField.setAccessible(true);
342 keyField.set(result, keyValue); 323 keyField.set(result, keyValue);
343 - } catch (Exception e) {  
344 - e.printStackTrace();  
345 - } 324 + } catch (Exception e) { }
346 } 325 }
347 return result; 326 return result;
348 } 327 }