sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocInfo.java
changeset 15 0367d2db2c06
parent 6 f65f740e69f9
--- a/sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocInfo.java	Tue Aug 24 12:10:03 2010 +0300
+++ b/sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocInfo.java	Tue Aug 24 12:16:27 2010 +0300
@@ -16,18 +16,19 @@
  */
 package com.nokia.s60tools.analyzetool.engine.statistic;
 
-
-
 /**
  * Class holds information of one memory allocation
+ * 
  * @author kihe
- *
+ * 
  */
 public class AllocInfo extends BaseInfo {
 
 	/**
 	 * Constructor
-	 * @param memoryAddress memory address for this allocation
+	 * 
+	 * @param memoryAddress
+	 *            memory address for this allocation
 	 */
 	public AllocInfo(String memoryAddress) {
 		super(memoryAddress);
@@ -36,15 +37,17 @@
 	private FreeInfo freedBy = null;
 
 	/**
-	 * set this allocation as freed by the provide FreeInfo
+	 * set this allocation as freed by the provided FreeInfo
+	 * 
 	 * @param info
 	 */
 	public void setFreedBy(FreeInfo info) {
-		this.freedBy  =info;
+		this.freedBy = info;
 	}
-	
+
 	/**
 	 * get the FreeInfo that freed this allocation
+	 * 
 	 * @return a FreeInfo or null
 	 */
 	public FreeInfo getFreedBy() {
@@ -53,6 +56,7 @@
 
 	/**
 	 * is this allocation freed
+	 * 
 	 * @return boolean true/false
 	 */
 	public boolean isFreed() {
@@ -61,14 +65,16 @@
 
 	@Override
 	public String toString() {
-		return String.format("AllocInfo [%s freedBy=[%s]]", super.toString(), freedByToString());
+		return String.format("AllocInfo [%s freedBy=[%s]]", super.toString(),
+				freedByToString());
 	}
-	
-	private String freedByToString(){
-		if (freedBy == null){
+
+	private String freedByToString() {
+		if (freedBy == null) {
 			return "null";
 		}
-		
-		return String.format("addr=0x%08X time=%s", freedBy.getMemoryAddress(), freedBy.getTime());
+
+		return String.format("addr=0x%08X time=%s", freedBy.getMemoryAddress(),
+				freedBy.getTime());
 	}
 }