WarnCallback.java revision 1088:7e62d98d4625
1148330Snetchild/* 2148330Snetchild * Permission is hereby granted, free of charge, to any person obtaining a copy of 3148330Snetchild * this software and associated documentation files (the "Software"), to deal in 4148330Snetchild * the Software without restriction, including without limitation the rights to 5148330Snetchild * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 6148330Snetchild * of the Software, and to permit persons to whom the Software is furnished to do 7148330Snetchild * so, subject to the following conditions: 8148330Snetchild * 9148330Snetchild * The above copyright notice and this permission notice shall be included in all 10148330Snetchild * copies or substantial portions of the Software. 11148330Snetchild * 12148330Snetchild * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13148330Snetchild * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14148543Snetchild * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15148543Snetchild * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16148330Snetchild * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17160983Sbrooks * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18160983Sbrooks * SOFTWARE. 19158687Sphk */ 20158687Sphkpackage jdk.nashorn.internal.runtime.regexp.joni; 21158687Sphk 22158687Sphk/** 23158687Sphk * @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a> 24158687Sphk */ 25158687Sphk@SuppressWarnings("javadoc") 26158687Sphkpublic interface WarnCallback { 27158687Sphk WarnCallback DEFAULT = new WarnCallback() { 28158687Sphk @Override 29158687Sphk public void warn(final String message) { 30158687Sphk System.err.println(message); 31158687Sphk } 32158687Sphk }; 33158687Sphk 34158687Sphk void warn(String message); 35158687Sphk} 36158687Sphk