- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
@Override public void handleScannedItem(ScannedItem item) { if ("class".equals(item.getExtension())) { boolean scan = false; String path = item.getRelativePath(); for (String packageName : packageNames) { if (path.startsWith(packageName)) { scan = true; break; } } if (scan) { try { Class<?> cls = item.loadAsClass(); if (cls.isAnnotationPresent(annotationClass)) classes.add(cls); } catch (ClassFormatError e) { } catch (ClassNotFoundException e) { } catch (IOException e) { log.error(e, "Could not load class: %s", item); } } } } }
@Override public void handleScannedItem(ScannedItem item) { if ("class".equals(item.getExtension())) { boolean scan = false; String path = item.getRelativePath(); for (String packageName : packageNames) { if (path.startsWith(packageName)) { scan = true; break; } } if (scan) { try { Class<?> cls = item.loadAsClass(); if (cls.isAnnotationPresent(annotationClass)) classes.add(cls); } catch (ClassFormatError e) { } catch (ClassNotFoundException e) { } catch (IOException e) { log.error(e, "Could not load class: %s", item); } } } } }
boolean scan = false; String path = item.getRelativePath(); for (String packageName : packageNames) { if (path.startsWith(packageName)) {