Strip enhancer class.

@param c
the c
@return the class
175217
public static Class<?> stripEnhancerClass(Class<?> c)
    {
        String className = c.getName();

        // strip CGLIB from name
        int enhancedIndex = className.indexOf("$$EnhancerByCGLIB");
        if (enhancedIndex != -1)
        {
            className = className.substring(0, enhancedIndex);
        }

        if (className.equals(c.getName()))
        {
            return c;
        }
        else
        {
            c = classForName(className, c.getClassLoader());
        }
        return c;
    }
731514
@Override
	public CPDisplayLayout removeByC_C(long classNameId, long classPK)
		throws NoSuchCPDisplayLayoutException {
		CPDisplayLayout cpDisplayLayout = findByC_C(classNameId, classPK);

		return remove(cpDisplayLayout);
	}
986199
def strip(self, chars=None):
        
        return self.__class__(
            self._str_strip('strip', chars),
            no_closing=chars and (closing_code in chars),
        )
209182
@SuppressWarnings("unchecked")
    public static <T> T createProxyObject(Class<T> proxyClass) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(proxyClass);
        enhancer.setCallback(new InvokeInterceptor(proxyClass));
        return (T) enhancer.create();
    }
910445
public static Class getArrayClass(Class c) {
     if (c.getComponentType().isArray())
        return getArrayClass(c.getComponentType());
     else
        return c.getComponentType();
  }
573711
@Override
	public void removeByC_C(long classNameId, long classPK) {
		for (CPAttachmentFileEntry cpAttachmentFileEntry : findByC_C(
				classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpAttachmentFileEntry);
		}
	}
1314663
public static String shrink(String string, char c) {
		if (string == null) {
			return null;
		}
		string = string.trim();
		Pattern pattern = Pattern.compile("\\" + String.valueOf(c) + "{2,}");
		return pattern.matcher(string).replaceAll(String.valueOf(c));
	}
667940
public static String removeChar(String s, char c)
  {
    int pos = s.indexOf(c);
    if (pos < 0) {
      return s;
    }
    StringBuilder sb = new StringBuilder(s.length() - 1);
    int prevPos = 0;
    do {
      sb.append(s, prevPos, pos);
      prevPos = pos + 1;
      pos = s.indexOf(c, pos + 1);
    } while (pos > 0);
    sb.append(s, prevPos, s.length());
    return sb.toString();
  }
242818
public static Klass<Class> java(Class c) {
        return c == null ? null : new Klass<Class>(c, KlassNavigator.JAVA);
    }
1320964
public Class<?> getColumnType(int c) {

        for (int r = 0; r < m_data.size(); r++) {
            Object val = m_data.get(r).get(c);
            if (val != null) {
                return val.getClass();
            }
        }
        return Object.class;
    }
188857
private byte[] enhancement(ClassLoader classLoader, byte[] classfileBuffer) {

    ClassReader cr = new ClassReader(classfileBuffer);
    CLAwareClassWriter cw = new CLAwareClassWriter(FLAGS, classLoader);
    TypeQueryClassAdapter ca = new TypeQueryClassAdapter(cw, enhanceContext);

    try {

      cr.accept(ca, ClassReader.EXPAND_FRAMES);
      if (ca.isLog(9)) {
        ca.log("... completed");
      }
      return cw.toByteArray();

    } catch (AlreadyEnhancedException e) {
      if (ca.isLog(1)) {
        ca.log("already enhanced");
      }
      return null;

    } catch (NoEnhancementRequiredException e) {
      if (ca.isLog(9)) {
        ca.log("... skipping, no enhancement required");
      }
      return null;
    }
  }
905238
@SuppressWarnings("unchecked")
	public static <T> T stripProxy(@Nullable final WrappingProxy<T> wrappingProxy) {
		if (wrappingProxy == null) {
			return null;
		}

		T delegate = wrappingProxy.getWrappedDelegate();

		int numProxiesStripped = 0;
		while (delegate instanceof WrappingProxy) {
			throwIfSafetyNetExceeded(++numProxiesStripped);
			delegate = ((WrappingProxy<T>) delegate).getWrappedDelegate();
		}

		return delegate;
	}
181339
public static String getClassRootPath(Class<?> c) {
		String strClassPathName = getClassPathName(c);

		ClassLoader cl = c.getClassLoader();
		if (cl == null)
			return null;

		URL urlClass = cl.getResource(strClassPathName);
		if (urlClass == null)
			return null;

		String strUrl = urlClass.toString();
		return strUrl.substring(0, strUrl.lastIndexOf(strClassPathName));
	}
1178993
static String getClassName(ClassSymbol c, boolean full) {
        if (full) {
            return c.getQualifiedName().toString();
        } else {
            String n = "";
            for ( ; c != null; c = c.owner.enclClass()) {
                n = c.name + (n.equals("") ? "" : ".") + n;
            }
            return n;
        }
    }
1326631
private static String getTypeDescription(ClassNode c, boolean end) {
        ClassNode d = c;
        if (ClassHelper.isPrimitiveType(d.redirect())) {
            d = d.redirect();
        }

        String desc = TypeUtil.getDescriptionByType(d);

        if (!end && desc.endsWith(";")) {
            desc = desc.substring(0, desc.length() - 1);
        }

        return desc;
    }
223772
public final DocWorkUnit findWorkUnitForClass(final Class<?> c) {
        for (final DocWorkUnit workUnit : this.workUnits)
            if (workUnit.getClazz().equals(c))
                return workUnit;
        return null;
    }
664558
public static <T> Class<T> forceInit(Class<T> c) {
        try {
            Class.forName(c.getName(), true, c.getClassLoader());
        } catch (ClassNotFoundException cause) {
            throw new AssertionError(cause); // Cannot happen
        }
        return c;
    }