Skip to content

Commit

Permalink
[Java] Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Apr 30, 2020
1 parent 2838758 commit c3fec7f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/io/aeron/build/AsciidocUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class AsciidocUtil
{
private static final List<String> EXTENSIONS = asList(".adoc", ".asciidoc");

public static File[] filterAsciidocFiles(File directory)
public static File[] filterAsciidocFiles(final File directory)
{
final File[] asciidocFiles = directory.listFiles(
(dir, name) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void preprocess() throws Exception
{
if (!target.exists() && !target.mkdirs())
{
throw new IOException("Unable to create build directory");
throw new IOException("unable to create build directory");
}

final File[] asciidocFiles = AsciidocUtil.filterAsciidocFiles(source);
Expand Down Expand Up @@ -128,7 +128,7 @@ public void process(Document document, PreprocessorReader reader)

if (0 < errors.size())
{
throw new Exception("Failed due to errors in parsing");
throw new Exception("failed due to errors in parsing");
}
}
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/io/aeron/build/GithubUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static String getWikiUriFromOriginUri(final String remoteUri) throws URIS

if (uriPath.endsWith("/"))
{
throw new IllegalArgumentException("Unable to handle URI path ending in '/': " + remoteUri);
throw new IllegalArgumentException("unable to handle URI path ending in '/': " + remoteUri);
}

final int lastSlashIndex = urIish.getPath().lastIndexOf('/');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public String getWikiUri() throws IOException, URISyntaxException
final File baseGitDir = new File(getProject().getRootDir(), ".git");
if (!baseGitDir.exists() || !baseGitDir.isDirectory())
{
throw new IllegalStateException("Unable to find valid git repository at: " + baseGitDir);
throw new IllegalStateException("unable to find valid git repository at: " + baseGitDir);
}

final Repository baseGitRepo = new FileRepositoryBuilder()
Expand All @@ -94,7 +94,7 @@ public String getWikiUri() throws IOException, URISyntaxException

if (null == origin)
{
throw new IllegalStateException("Unable to find origin URI");
throw new IllegalStateException("unable to find origin URI");
}

return GithubUtil.getWikiUriFromOriginUri(origin);
Expand Down

0 comments on commit c3fec7f

Please sign in to comment.