Skip to content

Commit 710e141

Browse files
committed
Change visibility of the "checkLevel()" and "log()" methods to "protected" in the "TerminalIO" class
1 parent c2ee16d commit 710e141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/at/jddev0/io/TerminalIO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public TerminalIO setLevel(int lvl) {
122122
* @param lvl Checks if level of lvl is ok.
123123
* @return Returns true for message level that are ok otherwise false.
124124
*/
125-
private boolean checkLevel(Level lvl) {
125+
protected boolean checkLevel(Level lvl) {
126126
return Level.USER == lvl || lvl.getLevel() >= this.lvl;
127127
}
128128

@@ -132,7 +132,7 @@ private boolean checkLevel(Level lvl) {
132132
* @param caller The caller class
133133
* @param newLine Auto new Line
134134
*/
135-
private void log(Level lvl, String txt, Class<?> caller, boolean newLine) {
135+
protected void log(Level lvl, String txt, Class<?> caller, boolean newLine) {
136136
//Checks if lvl is ok
137137
if(!checkLevel(lvl))
138138
return;

0 commit comments

Comments
 (0)