Port org.slf4j.helpers.Util.java to the slf4j GWT logger (#9319)

* Port org.slf4j.helpers.Util.java to the slf4j GWT logger


Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
6.19.x
Vitalii Parfonov 2018-04-03 13:09:48 +03:00 committed by GitHub
parent 425a5da30b
commit 2ae3c357c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,65 @@
/**
* Copyright (c) 2004-2011 QOS.ch
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
package org.slf4j.helpers;
/**
*
* Note:
* Taken form org.slf4j.helpers.
* Class does nothing, contains empty methods
* Adding only for porting slf4j logger to the GWT app
*
*
* An internal utility class.
*
*
*
* @author Alexander Dorokhine
* @author Ceki G&uuml;lc&uuml;
*/
public final class Util {
private Util() {
}
public static String safeGetSystemProperty(String key) {
return "";
}
public static boolean safeGetBooleanSystemProperty(String key) {
return false;
}
public static Class<?> getCallingClass() {
return null;
}
static final public void report(String msg, Throwable t) {
}
static final public void report(String msg) {
}
}