File tree 2 files changed +28
-16
lines changed
spring-jcl/src/main/java/org/apache/commons/logging
2 files changed +28
-16
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,25 @@ public static Log getLog(String name) {
77
77
*/
78
78
@ Deprecated
79
79
public static LogFactory getFactory () {
80
- return new LogFactory () {};
80
+ return new LogFactory () {
81
+ @ Override
82
+ public Object getAttribute (String name ) {
83
+ return null ;
84
+ }
85
+ @ Override
86
+ public String [] getAttributeNames () {
87
+ return new String [0 ];
88
+ }
89
+ @ Override
90
+ public void removeAttribute (String name ) {
91
+ }
92
+ @ Override
93
+ public void setAttribute (String name , Object value ) {
94
+ }
95
+ @ Override
96
+ public void release () {
97
+ }
98
+ };
81
99
}
82
100
83
101
/**
@@ -106,29 +124,19 @@ public Log getInstance(String name) {
106
124
// Just in case some code happens to call uncommon Commons Logging methods...
107
125
108
126
@ Deprecated
109
- public Object getAttribute (String name ) {
110
- return null ;
111
- }
127
+ public abstract Object getAttribute (String name );
112
128
113
129
@ Deprecated
114
- public String [] getAttributeNames () {
115
- return new String [0 ];
116
- }
130
+ public abstract String [] getAttributeNames ();
117
131
118
132
@ Deprecated
119
- public void removeAttribute (String name ) {
120
- // do nothing
121
- }
133
+ public abstract void removeAttribute (String name );
122
134
123
135
@ Deprecated
124
- public void setAttribute (String name , Object value ) {
125
- // do nothing
126
- }
136
+ public abstract void setAttribute (String name , Object value );
127
137
128
138
@ Deprecated
129
- public void release () {
130
- // do nothing
131
- }
139
+ public abstract void release ();
132
140
133
141
@ Deprecated
134
142
public static void release (ClassLoader classLoader ) {
Original file line number Diff line number Diff line change @@ -74,4 +74,8 @@ public String[] getAttributeNames() {
74
74
return this .attributes .keySet ().toArray (new String [0 ]);
75
75
}
76
76
77
+ @ Override
78
+ public void release () {
79
+ }
80
+
77
81
}
You can’t perform that action at this time.
0 commit comments