@Override protected void populateCollection(final HierarchicalStreamReader reader, final UnmarshallingContext context, final Collection collection) { super.populateCollection(reader, context, collection); ((LineRangeList)collection).trim(); }
@Override protected void populateCollection(final HierarchicalStreamReader reader, final UnmarshallingContext context, final Collection collection) { super.populateCollection(reader, context, collection); ((LineRangeList)collection).trim(); }
/** * {@link AbstractAnnotationParser} can call this method to let * {@link AbstractAnnotation}s to reduce their memory footprint by sharing * what they can share with other {@link AbstractAnnotation}s. * * @param builder * caches previously used strings * @since 1.43 */ public void intern(final TreeStringBuilder builder) { lineRanges.trim(); message = builder.intern(message); fileName = builder.intern(fileName); moduleName = builder.intern(moduleName); packageName = builder.intern(packageName); readResolve(); // String.intern some of the data fields }
/** * {@link AbstractAnnotationParser} can call this method to let * {@link AbstractAnnotation}s to reduce their memory footprint by sharing * what they can share with other {@link AbstractAnnotation}s. * * @param builder * caches previously used strings * @since 1.43 */ public void intern(final TreeStringBuilder builder) { lineRanges.trim(); message = builder.intern(message); fileName = builder.intern(fileName); moduleName = builder.intern(moduleName); packageName = builder.intern(packageName); readResolve(); // String.intern some of the data fields }