private static String fixConstructor(final ServiceProvider provider) { final String s = String.valueOf(provider.getConstructor()); final String[] split = s.split(" *, *"); for (int i = 0; i < split.length; i++) { split[i] = Strings.lcfirst(split[i]); } return Join.join(", ", split); }
private static String fixConstructor(final ServiceProvider provider) { final String s = String.valueOf(provider.getConstructor()); final String[] split = s.split(" *, *"); for (int i = 0; i < split.length; i++) { split[i] = Strings.lcfirst(split[i]); } return Join.join(", ", split); }
private void checkInterface(RemoteBean b, Class<?> beanClass, String tag, String className) { Class<?> interfce = lookForClass(className, tag, b.getEjbName()); if (interfce == null) return; check_hasDependentClasses(b, className, tag); tag = Strings.lcfirst(Strings.camelCase(tag)); if (isValidInterface(b, interfce, beanClass, tag)); ClassFinder finder = new ClassFinder(interfce); for (Class<? extends Annotation> annotation : beanOnlyAnnotations) { if (interfce.isAnnotationPresent(annotation)){ warn(b, "interface.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), b.getEjbClass()); } for (Method method : finder.findAnnotatedMethods(annotation)) { warn(b, "interfaceMethod.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), method.getName(), b.getEjbClass()); } } }
private void checkInterface(final RemoteBean b, final Class<?> beanClass, String tag, final String className) { final Class<?> interfce = lookForClass(className, tag, b.getEjbName()); if (interfce == null) { return; } check_hasDependentClasses(b, className, tag); tag = Strings.lcfirst(Strings.camelCase(tag)); isValidInterface(b, interfce, beanClass, tag); final ClassFinder finder = new ClassFinder(interfce); for (final Class<? extends Annotation> annotation : beanOnlyAnnotations) { if (interfce.isAnnotationPresent(annotation)) { warn(b, "interface.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), b.getEjbClass()); } for (final Method method : finder.findAnnotatedMethods(annotation)) { warn(b, "interfaceMethod.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), method.getName(), b.getEjbClass()); } } }
private void checkInterface(final ClassLoader loader, final RemoteBean b, final Class<?> beanClass, String tag, final String className) { final Class<?> interfce = lookForClass(loader, className, tag, b.getEjbName()); if (interfce == null) { return; } check_hasDependentClasses(b, className, tag); tag = Strings.lcfirst(Strings.camelCase(tag)); isValidInterface(b, interfce, beanClass, tag); final ClassFinder finder = new ClassFinder(interfce); for (final Class<? extends Annotation> annotation : beanOnlyAnnotations) { if (interfce.isAnnotationPresent(annotation)) { warn(b, "interface.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), b.getEjbClass()); } for (final Method method : finder.findAnnotatedMethods(annotation)) { warn(b, "interfaceMethod.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), method.getName(), b.getEjbClass()); } } }
final String key = Strings.lcfirst(entry.getKey().toString()); final String value = entry.getValue().toString(); final String type = guessType(key, value); final String lcFirstKey = Strings.lcfirst(entry.getKey().toString()); final String ucFirstKey = Strings.ucfirst(lcFirstKey); final String value = entry.getValue().toString();
final String key = Strings.lcfirst(entry.getKey().toString()); final String value = entry.getValue().toString(); final String type = guessType(key, value); final String lcFirstKey = Strings.lcfirst(entry.getKey().toString()); final String ucFirstKey = Strings.ucfirst(lcFirstKey); final String value = entry.getValue().toString();
name = Strings.lcfirst(name); if (!allFields.contains(name)){ allFields.add(name);
name = Strings.lcfirst(name); if (!allFields.contains(name)) { allFields.add(name);
name = Strings.lcfirst(name); if (!allFields.contains(name)) { allFields.add(name);