Search Results
OK to copy?
Examples 1 through 10 of
14 (0.079 seconds)
Class:
org.springframework.util.ObjectUtils
©,
Rating:
0% of 0,
C2
Class: org.springframework.web.bind.ServletRequestDataBinder ©, Rating: 0% of 0, C3
Class: org.springframework.util.ClassUtils ©, Rating: 0% of 0, C2
Class: org.apache.axis.utils.BeanPropertyDescriptor ©, Rating: 0% of 0, C2
Class: org.apache.batik.gvt.event.AWTEventDispatcher ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.soap.XPlanner ©, Rating: 0% of 0, C1
Class: org.apache.jasper.compiler.JspUtil ©, Rating: 0% of 0, C3
Class: org.apache.jasper.compiler.JspUtil ©, Rating: 0% of 0, C3
Class: org.apache.axis.utils.JavaUtils ©, Rating: 0% of 0, C3
Class: org.apache.axis.utils.JavaUtils ©, Rating: 0% of 0, C3
104 }
105 Class wrapperType = Array.get(primitiveArray, 0).getClass();
106 Object[] newArray = (Object[]) Array.newInstance(wrapperType, length);
107 for (int i = 0; i < length; i++) {
108 newArray[i] = Array.get(primitiveArray, i);
Class: org.springframework.web.bind.ServletRequestDataBinder ©, Rating: 0% of 0, C3
153 else if (type != null && type.isArray()) {
154 // Special handling of array property.
155 pvs.addPropertyValue(field, Array.newInstance(type.getComponentType(), 0));
156 }
157 else {
Class: org.springframework.util.ClassUtils ©, Rating: 0% of 0, C2
070 String elementClassName = name.substring(0, name.length() - ARRAY_SUFFIX.length());
071 Class elementClass = Class.forName(elementClassName, true, Thread.currentThread().getContextClassLoader());
072 return Array.newInstance(elementClass, 0).getClass();
073 }
074 return Class.forName(name, true, Thread.currentThread().getContextClassLoader());
Class: org.apache.axis.utils.BeanPropertyDescriptor ©, Rating: 0% of 0, C2
210 if (array == null || Array.getLength(array) <= i) {
211 // Construct a larger array of the same type
212 Object newArray = Array.newInstance(componentType, i + 1);
213 // Copy over the old elements
214 if (array != null) {
Class: org.apache.batik.gvt.event.AWTEventDispatcher ©, Rating: 0% of 0, C1
337 */
338 public EventListener [] getListeners(Class listenerType) {
339 Object array =
340 Array.newInstance(listenerType,
341 glisteners.getListenerCount(listenerType));
Class: com.technoetic.xplanner.soap.XPlanner ©, Rating: 0% of 0, C1
568 private Object[] createArray(Class dataClass, Collection objects) throws InstantiationException,
569 IllegalAccessException {
570 Object[] dataObjects = (Object[])java.lang.reflect.Array.newInstance(dataClass, objects.size());
571 for (int i = 0; i < dataObjects.length; i++) {
572 dataObjects[i] = dataClass.newInstance();
Class: org.apache.jasper.compiler.JspUtil ©, Rating: 0% of 0, C3
0471
0472 // Array of more than i dimension
0473 return java.lang.reflect.Array.newInstance(c, new int[dims]).getClass();
0474 }
0475
Class: org.apache.jasper.compiler.JspUtil ©, Rating: 0% of 0, C3
0468
0469 if (dims == 1)
0470 return java.lang.reflect.Array.newInstance(c, 1).getClass();
0471
0472 // Array of more than i dimension
Class: org.apache.axis.utils.JavaUtils ©, Rating: 0% of 0, C3
0421 Object [] array;
0422 try {
0423 array = (Object [])Array.newInstance(destClass.getComponentType(),
0424 length);
0425 } catch (Exception e) {
Class: org.apache.axis.utils.JavaUtils ©, Rating: 0% of 0, C3
0402 if (destClass.getComponentType().isPrimitive()) {
0403
0404 Object array = Array.newInstance(destClass.getComponentType(),
0405 length);
0406 // Assign array elements