qos-ch/slf4j — pull request #43 by steve217 (2013-06-29 22:40:20+00:00)
Title: Fixed situation where migrator does not convert JCL log statements and breaks code.

There is a bug in the migrator: when the migrator encounters the method line on a new line apart from the class, the convertor changes the declaration but not the method name and thus breaks the code.

Normal convert:
Log logger = LogFactory.getLog(MyClass.class);
To
Logger logger = LoggerFactory.getLogger(MyClass.class);

Broken convert:
--------------------------------------
public class DoesntWork {

==> When method name is on a separate line...
static Log logger = LogFactory
.getLog(DoesntWork.class);

Result:
-------------------------------------
public class DoesntWork {

==> .. the migrator changes the first line
static Logger logger = LogFactory

==> .. but not the calling class and method name.
LogFactory
.getLog(DoesntWork.class);
//sb LoggerFactory
//	.getLogger(DoesntWork.class);

-------------------------------------
This looks like an old bug.
See http://mailman.qos.ch/pipermail/slf4j-dev/2011-March/003280.html

---
Also I fixed the spelling of 'instanciation'. :)