1 22 package org.jboss.test.proxycompiler; 23 24 public class Util { 25 26 private Util() { } 27 28 public final static String getStringRepresentation(int i, 29 Object ref, 30 int[] ints, 31 Object [] objectRefs) { 32 33 StringBuffer b = new StringBuffer (); 34 b.append("i = " + i + ","); 35 b.append("ref = " + ref + ","); 36 b.append("ints = {"); 37 for(int j = 0; j < ints.length; j++) { 38 b.append("[" + j + "]=" + ints[j]); 39 } 40 b.append("},"); 41 b.append("objectRefs = {"); 42 for(int j = 0; j < objectRefs.length; j++) { 43 b.append("[" + j + "]=" + objectRefs[j]); 44 } 45 b.append("}"); 46 47 return b.toString(); 48 49 } 50 } 51 52 | Popular Tags |