Changeset 987


Ignore:
Timestamp:
12/18/15 14:30:10 (8 years ago)
Author:
davidb
Message:

Changed to 'lower-tech' way of doing this, as the line that had to be commented out was causing a syntax error about type-casting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r976 r987  
    2020
    2121import java.awt.GraphicsEnvironment;
     22import java.io.Serializable;
    2223import java.lang.reflect.Constructor;
    2324import java.lang.reflect.Method;
    2425import java.lang.reflect.Modifier;
    2526import java.rmi.UnexpectedException;
     27import java.util.ArrayList;
    2628import java.util.Arrays;
    2729import java.util.Collection;
     
    444446                                        final Class<?>[] m1ParamTypes = m1.getParameterTypes();
    445447                                        final Class<?>[] m2ParamTypes = m2.getParameterTypes();
    446                                         final List<Class<?>> typeOrder = Arrays.asList(Integer.TYPE, Double.TYPE, Float.TYPE, String.class);                                   
    447                                         for(int i = 0,o = 0; i < m1ParamTypes.length && o < m2ParamTypes.length; i++,o++) {
     448                               
     449                                        //final ArrayList<Class<?>> typeOrder = Arrays.asList(Integer.TYPE, Double.TYPE, Float.TYPE, String.class);
     450                                        // The above line doesn't compile in Eclipse Mars with the compile set to v1.8
     451                                        // So changed to the following (low-tech) way:
     452                                        ArrayList<Class<?>> typeOrder = new ArrayList<Class<?>>();
     453                                        typeOrder.add(Integer.TYPE);
     454                                        typeOrder.add(Double.TYPE);
     455                                        typeOrder.add(Float.TYPE);
     456                                        typeOrder.add(String.class);
     457                                       
     458                                         for(int i = 0,o = 0; i < m1ParamTypes.length && o < m2ParamTypes.length; i++,o++) {
    448459                                                final Class<?> m1ParamType = m1ParamTypes[i];
    449460                                                final Class<?> m2ParamType = m2ParamTypes[o];
Note: See TracChangeset for help on using the changeset viewer.