Open GoogleCodeExporter opened 9 years ago
A compiler error or warning is missing here. But to avoid the duplication your
code should be:
package examples {
public static class StringUtil {
public static boolean isNullOrEmpty(this String str) {
return (str == null) || (str.length() == 0);
}
}
}
You dont have to specify any annotation explicitly for static classes and
extension methods.
Original comment by stab.hac...@gmail.com
on 26 Jun 2010 at 11:42
Original issue reported on code.google.com by
ice.ta...@gmail.com
on 19 Jun 2010 at 1:17