sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/model/ProfiledGeneric.java
changeset 12 ae255c9aa552
parent 5 844b047e260d
equal deleted inserted replaced
11:5b9d4d8641ce 12:ae255c9aa552
   306   	/**
   306   	/**
   307   	 *  returns y-coordinates
   307   	 *  returns y-coordinates
   308   	 * @return
   308   	 * @return
   309   	 */
   309   	 */
   310   	public float[] getActivityList(){
   310   	public float[] getActivityList(){
   311   		if (activityP != null){
   311   		if (activityP != null){  	
   312   			//Arrays.copyOf() is only supported from Java 6
   312   			return activityP.clone();
   313   			//return Arrays.copyOf(this.activityP, this.activityP.length);
       
   314   			float[] ret = new float[activityP.length];
       
   315   			for (int i = 0; i < ret.length; i++) {
       
   316 				ret[i] = activityP[i];
       
   317 			}
       
   318   			return ret;
       
   319   		}
   313   		}
   320   		return null;
   314   		return null;
   321    	}
   315    	}
   322   	
   316   	
   323   	/**
   317   	/**