Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 18f07f0

Browse files
committed
Better param name.
git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/trunk@1567108 13f79535-47bb-0310-9956-ffa450edef68
1 parent 95bd0fe commit 18f07f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/apache/log4j/jdbc/JDBCAppender.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,13 @@ public boolean requiresLayout() {
323323
/**
324324
*
325325
*/
326-
public void setSql(String s) {
327-
sqlStatement = s;
326+
public void setSql(String sql) {
327+
sqlStatement = sql;
328328
if (getLayout() == null) {
329-
this.setLayout(new PatternLayout(s));
329+
this.setLayout(new PatternLayout(sql));
330330
}
331331
else {
332-
((PatternLayout)getLayout()).setConversionPattern(s);
332+
((PatternLayout)getLayout()).setConversionPattern(sql);
333333
}
334334
}
335335

0 commit comments

Comments
 (0)