-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indent multiline method invocations consistently with Java 8 and 11
Closes gh-332
- Loading branch information
1 parent
3f9307a
commit 3741699
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...vaformat-formatter-tests/src/test/resources/expected/multi-line-statement-indentation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package simple; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.net.MalformedURLException; | ||
import java.nio.charset.StandardCharsets; | ||
import java.nio.file.Files; | ||
import java.nio.file.Paths; | ||
|
||
public class Simple { | ||
|
||
public String someMethod() throws MalformedURLException, IOException { | ||
String settingsXml = new String(Files.readAllBytes(Paths.get("src", "intTest", "projects", "settings.xml")), | ||
StandardCharsets.UTF_8) | ||
.replace("@localCentralUrl@", | ||
new File("build/int-test-maven-repository").toURI().toURL().toString()) | ||
.replace("@localRepositoryPath@", new File("build/local-maven-repository").getAbsolutePath()); | ||
return settingsXml; | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
...javaformat-formatter-tests/src/test/resources/source/multi-line-statement-indentation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package simple; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.net.MalformedURLException; | ||
import java.nio.charset.StandardCharsets; | ||
import java.nio.file.Files; | ||
import java.nio.file.Paths; | ||
|
||
public class Simple { | ||
|
||
public String someMethod() throws MalformedURLException, IOException { | ||
String settingsXml = new String(Files.readAllBytes(Paths.get("src", "intTest", "projects", "settings.xml")), | ||
StandardCharsets.UTF_8) | ||
.replace("@localCentralUrl@", | ||
new File("build/int-test-maven-repository").toURI().toURL().toString()) | ||
.replace("@localRepositoryPath@", new File("build/local-maven-repository").getAbsolutePath()); | ||
return settingsXml; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters