- Timestamp:
- 06/24/13 13:38:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/params/ReflectionAccess.java
r84 r85 47 47 try { 48 48 return type.cast(reflectedClass.getMethod(accessorName(true, id)).invoke(object)); 49 } catch (NoSuchMethodException ex) { 50 //ex.printStackTrace(); 51 } catch (InvocationTargetException e) { 49 } catch (NoSuchMethodException | InvocationTargetException ex) { 50 //e.printStackTrace(); 51 } 52 try { 53 return type.cast(reflectedClass.getMethod(id).invoke(object)); 54 } catch (NoSuchMethodException | InvocationTargetException ex) { 52 55 //e.printStackTrace(); 53 56 } 54 57 55 } catch (IllegalAccessException e x) {58 } catch (IllegalAccessException e) { 56 59 log.warn("illegal access error occurred while trying to access returnedObject"); 57 e x.printStackTrace();60 e.printStackTrace(); 58 61 } catch (ClassCastException ignored) { 59 62 … … 87 90 try { 88 91 reflectedClass.getMethod(accessorName(false, id), new Class[]{param.getStorageType()}).invoke(object, value); 89 } catch (InvocationTargetException ignored) { 90 } catch (NoSuchMethodException ignored) { 92 } catch (InvocationTargetException | NoSuchMethodException ignored) { 93 } 94 try { 95 reflectedClass.getMethod(id, new Class[]{param.getStorageType()}).invoke(object, value); 96 } catch (InvocationTargetException | NoSuchMethodException ignored) { 91 97 } 92 98 } catch (Exception ex) { … … 161 167 try { 162 168 return reflectedClass.newInstance(); 163 } catch (InstantiationException e) { 164 e.printStackTrace(); 165 } catch (IllegalAccessException e) { 169 } catch (InstantiationException | IllegalAccessException e) { 166 170 e.printStackTrace(); 167 171 }
Note: See TracChangeset
for help on using the changeset viewer.