Ignore:
Timestamp:
06/24/13 13:38:40 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • upgrade to Java 7
    • use try-multi-catch clauses
    • use try-with-resources were appropriate
  • configure FindBugs? (use mvn site and then navigate in browser to the report)
    • remove most bugs found
  • parametrize Dispatching environment (Dispatcher, RunAt?) to enforce more control on the place of closures actual call

CHANGELOG:
Rework FavouritesXMLFactory.

FindBugs?. Thread start.

FindBugs?. Minor change.

FindBugs?. Iterate over entrySet.

FindBugs?. Various.

FindBug?.

FindBug?. Encoding.

FindBug?. Final fields.

FindBug?.

Remove synchronization bug in ClientConnection?.

Experiments with findbugs.

Finish parametrization.

Make RunAt? an abstract class.

More changes in parametrization.

More changes in parametrizing dispatching.

Several changes to parametrize tasks.

Rename Runnable to RunAt?.

Add specific framsticks Runnable.

Add JSR305 (annotations).

Add findbugs reporting.

More improvements to ParamBuilder? wording.

Make FramsClass? accept also ParamBuilder?.

Change wording of ParamBuilder?.

Change wording of Request creation.

Use Java 7 exception catch syntax.

Add ScopeEnd? class.

Upgrade to Java 7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/params/ReflectionAccess.java

    r84 r85  
    4747                        try {
    4848                                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) {
    5255                                //e.printStackTrace();
    5356                        }
    5457
    55                 } catch (IllegalAccessException ex) {
     58                } catch (IllegalAccessException e) {
    5659                        log.warn("illegal access error occurred while trying to access returnedObject");
    57                         ex.printStackTrace();
     60                        e.printStackTrace();
    5861                } catch (ClassCastException ignored) {
    5962
     
    8790                        try {
    8891                                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) {
    9197                        }
    9298                } catch (Exception ex) {
     
    161167                try {
    162168                        return reflectedClass.newInstance();
    163                 } catch (InstantiationException e) {
    164                         e.printStackTrace();
    165                 } catch (IllegalAccessException e) {
     169                } catch (InstantiationException | IllegalAccessException e) {
    166170                        e.printStackTrace();
    167171                }
Note: See TracChangeset for help on using the changeset viewer.