-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excavator: Format Java files #1218
Conversation
1c4ca7d
to
eb82589
Compare
keystores/src/main/java/com/palantir/conjure/java/config/ssl/KeyStores.java
Outdated
Show resolved
Hide resolved
d4d92f3
to
5a587e3
Compare
@@ -84,15 +84,15 @@ private synchronized void pruneAndLog() { | |||
private void logLeak(Optional<RuntimeException> stackTrace) { | |||
if (stackTrace.isPresent()) { | |||
log.warn("Resource leak detected - did you forget to close a resource properly? " | |||
+ "This will likely hurt performance. Stack trace is of the call where " | |||
+ "the acquire happened.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dansanduleac extra request- could we try and keep this old string wrapping indentation?? I think it makes it easier to differentiate this first arg (even though it spans multiple lines) from the second and third args.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we could avoid modifying wrapped strings that aren't super incorrect, it would help some older codebases with longer wrapped templates. Take SQL for example:
// If this gets re-wrapped, it becomes more difficult to read
PreparedStatement preparedStatement = connection.prepareStatement(""
+ "SELECT Orders.OrderID, Customers.CustomerName, Shippers.ShipperName "
+ "FROM Orders "
+ "INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID "
+ "INNER JOIN Shippers ON Orders.ShipperID = Shippers.ShipperID "
+ "WHERE Orders.OrderID = ?");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far I think the eclipse formatter won't reflow any strings (even if they're >120 chars).
4be8666
to
4527116
Compare
4527116
to
b1cb150
Compare
excavator is a bot for automating changes across repositories.
Changes produced by the roomba/format check.
To enable or disable this check, please contact the maintainers of Excavator.