/* * [AuthorWarning.java] * * Summary: buffer up warning messages so they can be sorted. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.0 2009-01-01 initial version. */ package com.mindprod.repair; import java.util.ArrayList; import java.util.Collections; import static java.lang.System.*; /** * buffer up warning messages so they can be sorted. * * @author Roedy Green, Canadian Mind Products * @version 1.0 2009-01-01 initial version. * @since 2009 */ class AuthorWarning implements Comparable { /** * buffer author warning messages so can print in order. */ private static final ArrayList aws = new ArrayList<>( 1000 ); private final AuthorBio old; private final AuthorBio recent; private final String reason; private AuthorWarning( final String reason, final AuthorBio old, final AuthorBio recent ) { this.reason = reason; this.old = old; this.recent = recent; } /** * Issue buffered up warning message about