You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2018/09/08 16:17:54 UTC
[isis] branch master updated: ISIS-1979: add missing license header
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 41e2e32 ISIS-1979: add missing license header
41e2e32 is described below
commit 41e2e3244b8f812730a5ed44cf7eb576a9cfc5d3
Author: Andi Huber <ah...@apache.org>
AuthorDate: Sat Sep 8 18:17:49 2018 +0200
ISIS-1979: add missing license header
also fixes a bug in LogStream, on a method that is not used anyway
Task-Url: https://issues.apache.org/jira/browse/ISIS-1979
---
.../runtime/headless/logging/LeveledLogger.java | 21 ++++++++++++++++++++-
.../core/runtime/headless/logging/LogStream.java | 6 +++---
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LeveledLogger.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LeveledLogger.java
index ce5d5a1..903bef6 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LeveledLogger.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LeveledLogger.java
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
package org.apache.isis.core.runtime.headless.logging;
import org.slf4j.Logger;
@@ -5,7 +24,7 @@ import org.slf4j.event.Level;
public class LeveledLogger {
- private Logger logger;
+ private final Logger logger;
private Level level;
public LeveledLogger(final Logger logger, final Level level) {
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LogStream.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LogStream.java
index 1850285..52f38d1 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LogStream.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/headless/logging/LogStream.java
@@ -62,9 +62,9 @@ public class LogStream extends OutputStream {
}
@Override
- public void write(int b) {
- String str = Integer.toString(b);
- this.buf.append(str);
+ public void write(int codePoint) {
+ char[] chars = Character.toChars(codePoint);
+ this.buf.append(chars);
}
@Override