Skip to content

Beginning of SQL.#163

Closed
nedtwigg wants to merge 1 commit intomasterfrom
feature/sql
Closed

Beginning of SQL.#163
nedtwigg wants to merge 1 commit intomasterfrom
feature/sql

Conversation

@nedtwigg
Copy link
Copy Markdown
Member

Skeleton implementation of #156.

HibernateStep is bad - not useful enough to ship. We should delete it, but shows a good starting point.

Copy link
Copy Markdown
Member

@jbduncan jbduncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for a starting point!

@@ -0,0 +1,86 @@
/*
* Copyright 2016 DiffPlug
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but we should probably change this to "2017". :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2018 is coming soon enough, I was gonna change our copyright notice then :) Also want to change the notice to point to https://github.com/diffplug/spotless/graphs/contributors

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds very sensible to me. :)

return input -> {
return (String) formatMethod.invoke(formatter, input);
};
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this will work with Java 9.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JLLeitschuh Are you referring to the use of reflection here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the use of the classloader in this way.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing something, but I'm not yet convinced it would be a problem on Java 9, as I have a real-world project using Java 9 and Spotless with google-java-format, and I've had no problems with Spotless or google-java-format specifically yet. (But it's worth noting that the project's using the classpath rather than the module-path, so I dunno how the JPMS would factor into things.)

@nedtwigg
Copy link
Copy Markdown
Member Author

#166 has this topic well-covered.

@nedtwigg nedtwigg closed this Nov 21, 2017
@nedtwigg nedtwigg deleted the feature/sql branch November 21, 2017 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants