Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clean a couple comments and formatting
  • Loading branch information
ZacSweers committed Oct 6, 2019
commit 7832883b5fec20a9998a5849f93a7a4eba2f8938
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ FormatterFunc createFormat() throws Exception {
if (useParams) {
//
// In KtLint 0.34+ there is a new "format(params: Params)" function. We create an
// instance of the Params class with our configuration and call it here.
// instance of the Params class with our configuration and invoke it here.
//

// grab the Params class
Class<?> paramsClass = classLoader.loadClass(pkg + ".ktlint.core.KtLint$Params");
// and its format method
// and its constructor
Constructor<?> constructor = paramsClass.getConstructor(
/* fileName, nullable */ String.class,
/* text */ String.class,
Expand Down