Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0366ee

Browse files
committed
chore: apply spotless
1 parentd4bd1dd commitd0366ee

File tree

184 files changed

+3844
-4630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+3844
-4630
lines changed

‎jsonschema2pojo-ant/src/main/java/org/jsonschema2pojo/ant/AntRuleLogger.java‎

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -21,77 +21,77 @@
2121

2222
publicclassAntRuleLoggerextendsAbstractRuleLogger {
2323

24-
privatestaticfinalStringLEVEL_PREFIX ="[";
25-
privatestaticfinalStringLEVEL_SUFFIX ="] ";
26-
privatestaticfinalStringDEBUG_LEVEL_PREFIX =LEVEL_PREFIX +"DEBUG" +LEVEL_SUFFIX;
27-
privatestaticfinalStringERROR_LEVEL_PREFIX =LEVEL_PREFIX +"ERROR" +LEVEL_SUFFIX;
28-
privatestaticfinalStringINFO_LEVEL_PREFIX =LEVEL_PREFIX +"INFO" +LEVEL_SUFFIX;
29-
privatestaticfinalStringTRACE_LEVEL_PREFIX =LEVEL_PREFIX +"TRACE" +LEVEL_SUFFIX;
30-
privatestaticfinalStringWARN_LEVEL_PREFIX =LEVEL_PREFIX +"WARN" +LEVEL_SUFFIX;
31-
32-
privatefinalJsonschema2PojoTasktask;
33-
34-
publicAntRuleLogger(Jsonschema2PojoTaskjsonschema2PojoTask) {
35-
this.task =jsonschema2PojoTask;
36-
}
37-
38-
@Override
39-
publicbooleanisDebugEnabled() {
40-
returntrue;
41-
}
42-
43-
@Override
44-
publicbooleanisErrorEnabled() {
45-
returntrue;
46-
}
47-
48-
@Override
49-
publicbooleanisInfoEnabled() {
50-
returntrue;
51-
}
52-
53-
@Override
54-
publicbooleanisTraceEnabled() {
55-
returntrue;
56-
}
57-
58-
@Override
59-
publicbooleanisWarnEnabled() {
60-
returntrue;
61-
}
62-
63-
protectedvoiddoDebug(Stringmsg) {
64-
log(msg,null,Project.MSG_DEBUG,DEBUG_LEVEL_PREFIX);
65-
}
66-
67-
protectedvoiddoError(Stringmsg,Throwablee) {
68-
log(msg,e,Project.MSG_ERR,ERROR_LEVEL_PREFIX);
69-
}
70-
71-
protectedvoiddoInfo(Stringmsg) {
72-
log(msg,null,Project.MSG_INFO,INFO_LEVEL_PREFIX);
73-
}
74-
75-
protectedvoiddoTrace(Stringmsg) {
76-
log(msg,null,Project.MSG_VERBOSE,TRACE_LEVEL_PREFIX);
77-
}
78-
79-
protectedvoiddoWarn(Stringmsg,Throwablee) {
80-
log(msg,null,Project.MSG_WARN,WARN_LEVEL_PREFIX);
81-
}
82-
83-
privatevoidlog(Stringmsg,Throwablee,intlevel,StringlevelPrefix) {
84-
if (task !=null &&task.getProject() !=null) {
85-
if(e !=null) {
86-
task.getProject().log(msg,e,level);
87-
}else {
88-
task.getProject().log(msg,level);
89-
}
90-
}else {
91-
System.err.println(levelPrefix +msg);
92-
if(e !=null) {
93-
e.printStackTrace(System.err);
94-
}
24+
privatestaticfinalStringLEVEL_PREFIX ="[";
25+
privatestaticfinalStringLEVEL_SUFFIX ="] ";
26+
privatestaticfinalStringDEBUG_LEVEL_PREFIX =LEVEL_PREFIX +"DEBUG" +LEVEL_SUFFIX;
27+
privatestaticfinalStringERROR_LEVEL_PREFIX =LEVEL_PREFIX +"ERROR" +LEVEL_SUFFIX;
28+
privatestaticfinalStringINFO_LEVEL_PREFIX =LEVEL_PREFIX +"INFO" +LEVEL_SUFFIX;
29+
privatestaticfinalStringTRACE_LEVEL_PREFIX =LEVEL_PREFIX +"TRACE" +LEVEL_SUFFIX;
30+
privatestaticfinalStringWARN_LEVEL_PREFIX =LEVEL_PREFIX +"WARN" +LEVEL_SUFFIX;
31+
32+
privatefinalJsonschema2PojoTasktask;
33+
34+
publicAntRuleLogger(Jsonschema2PojoTaskjsonschema2PojoTask) {
35+
this.task =jsonschema2PojoTask;
36+
}
37+
38+
@Override
39+
publicbooleanisDebugEnabled() {
40+
returntrue;
41+
}
42+
43+
@Override
44+
publicbooleanisErrorEnabled() {
45+
returntrue;
46+
}
47+
48+
@Override
49+
publicbooleanisInfoEnabled() {
50+
returntrue;
51+
}
52+
53+
@Override
54+
publicbooleanisTraceEnabled() {
55+
returntrue;
56+
}
57+
58+
@Override
59+
publicbooleanisWarnEnabled() {
60+
returntrue;
61+
}
62+
63+
protectedvoiddoDebug(Stringmsg) {
64+
log(msg,null,Project.MSG_DEBUG,DEBUG_LEVEL_PREFIX);
65+
}
66+
67+
protectedvoiddoError(Stringmsg,Throwablee) {
68+
log(msg,e,Project.MSG_ERR,ERROR_LEVEL_PREFIX);
69+
}
70+
71+
protectedvoiddoInfo(Stringmsg) {
72+
log(msg,null,Project.MSG_INFO,INFO_LEVEL_PREFIX);
73+
}
74+
75+
protectedvoiddoTrace(Stringmsg) {
76+
log(msg,null,Project.MSG_VERBOSE,TRACE_LEVEL_PREFIX);
77+
}
78+
79+
protectedvoiddoWarn(Stringmsg,Throwablee) {
80+
log(msg,null,Project.MSG_WARN,WARN_LEVEL_PREFIX);
81+
}
82+
83+
privatevoidlog(Stringmsg,Throwablee,intlevel,StringlevelPrefix) {
84+
if (task !=null &&task.getProject() !=null) {
85+
if (e !=null) {
86+
task.getProject().log(msg,e,level);
87+
}else {
88+
task.getProject().log(msg,level);
89+
}
90+
}else {
91+
System.err.println(levelPrefix +msg);
92+
if (e !=null) {
93+
e.printStackTrace(System.err);
94+
}
95+
}
9596
}
96-
}
9797
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp