if (element == null) { delta.add(new AnnotationChange(key, entry.getValue(), null)); processingContext.log(Level.FINER, "Annotation removed " + key); } else { AnnotationMirror found = null; processingContext.log(Level.FINER, "Annotation removed " + key); AnnotationState knownAnnotation = knownAnnotations.get(annotation.getKey()); if (knownAnnotation != null) { processingContext.log(Level.FINER, "Annotation updated " + annotation.getKey()); } else { processingContext.log(Level.FINER, "Annotation added " + annotation.getKey());
if (element == null) { delta.add(new AnnotationChange(key, entry.getValue(), null)); processingContext.log(Level.FINER, "Annotation removed " + key); } else { AnnotationMirror found = null; processingContext.log(Level.FINER, "Annotation removed " + key); AnnotationState knownAnnotation = knownAnnotations.get(annotation.getKey()); if (knownAnnotation != null) { processingContext.log(Level.FINER, "Annotation updated " + annotation.getKey()); } else { processingContext.log(Level.FINER, "Annotation added " + annotation.getKey());
private Properties loadBundle(ProcessingContext context, ElementHandle.Package pkg, String bundleName) { Path.Absolute absolute = pkg.getPackageName().resolve(bundleName + ".properties"); FileObject bundle = context.resolveResourceFromSourcePath(pkg, absolute); if (bundle != null) { try { InputStream in = bundle.openInputStream(); Properties properties = new Properties(); properties.load(in); return properties; } catch (IOException e) { context.log(Level.SEVERE, "Could not load resource bundle", e); } } return null; } // end::loadBundle[]
private Properties loadBundle(ProcessingContext context, ElementHandle.Package pkg, String bundleName) { Path.Absolute absolute = pkg.getPackageName().resolve(bundleName + ".properties"); FileObject bundle = context.resolveResourceFromSourcePath(pkg, absolute); if (bundle != null) { try { InputStream in = bundle.openInputStream(); Properties properties = new Properties(); properties.load(in); return properties; } catch (IOException e) { context.log(Level.SEVERE, "Could not load resource bundle", e); } } return null; } // end::loadBundle[]