@Test public void testGetNextUniqueFieldName() { final String unique1 = JavassistUtils.getNextUniqueFieldName(); final String unique2 = JavassistUtils.getNextUniqueFieldName(); Assert.assertFalse(unique1.equals(unique2)); }
public static String getNextUniqueFieldName() { return String.format("field_%d", objectCounter++); }
JavassistUtils { public static String getNextUniqueFieldName() { return String.format("field_%d", objectCounter++); } }
JavassistUtils { public static String getNextUniqueFieldName() { return String.format("field_%d", objectCounter++); } private  JavassistUtils(); }
JavassistUtils { public static String getNextUniqueFieldName() { return String.format("field_%d", objectCounter++); } private  JavassistUtils(); static AnnotationsAttribute cloneAnnotationsAttribute(
      final ConstPool constPool,
      final AnnotationsAttribute attr,
      final ElementType validElementType); static CtMethod findMethod(final CtClass clz, final Method m); static void copyClassAnnotations(final CtClass oldClass, final CtClass newClass); static void copyMethodAnnotationsToField(final CtMethod method, final CtField field); static String getNextUniqueClassName(); static String getNextUniqueFieldName(); static CtClass generateEmptyClass(); }
JavassistUtils { public static String getNextUniqueFieldName() { return String.format("field_%d", objectCounter++); } private  JavassistUtils(); static AnnotationsAttribute cloneAnnotationsAttribute(
      final ConstPool constPool,
      final AnnotationsAttribute attr,
      final ElementType validElementType); static CtMethod findMethod(final CtClass clz, final Method m); static void copyClassAnnotations(final CtClass oldClass, final CtClass newClass); static void copyMethodAnnotationsToField(final CtMethod method, final CtField field); static String getNextUniqueClassName(); static String getNextUniqueFieldName(); static CtClass generateEmptyClass(); static final String PREFIX_PACKAGE; }