Here you can find the source of sanitizeClassName(String s)
Parameter | Description |
---|---|
s | the unsanitized class name |
public static String sanitizeClassName(String s)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w. j av a 2s .com * Removes package names in instances where {@link Class#getSimpleName()} cannot be called, i.e. reflection. * @param s the unsanitized class name * @return the sanitized class name */ public static String sanitizeClassName(String s) { return s.substring(s.lastIndexOf(".") + 1); } }