style: use uppercase L instead of lowercase version for better readability

This commit is contained in:
broDom
2017-07-03 17:16:54 +02:00
parent c91b3a39cd
commit efac49ccf7
22 changed files with 48 additions and 48 deletions

View File

@@ -120,7 +120,7 @@ public class SvnBlameCommand extends AbstractSvnCommand implements BlameCommand
SVNLogClient svnLogClient = new SVNLogClient(svnManager, null);
svnLogClient.doAnnotate(svnurl, SVNRevision.UNDEFINED,
SVNRevision.create(1l), endRevision,
SVNRevision.create(1L), endRevision,
new SvnBlameHandler(svnRepository, path,
blameLines));
}

View File

@@ -98,7 +98,7 @@ public class SvnBundleCommand extends AbstractSvnCommand
try
{
outputStream = target.openBufferedStream();
adminClient.doDump(repository, outputStream, SVNRevision.create(-1l),
adminClient.doDump(repository, outputStream, SVNRevision.create(-1L),
SVNRevision.HEAD, false, false);
}
finally

View File

@@ -203,7 +203,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand
*/
private long parseRevision(String v) throws RepositoryException
{
long result = -1l;
long result = -1L;
if (!Strings.isNullOrEmpty(v))
{
@@ -252,7 +252,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand
new ChangesetCollector(changesets));
}
return new ChangesetPagingResult((int) (latest + 1l), changesets);
return new ChangesetPagingResult((int) (latest + 1L), changesets);
}
/**
@@ -279,7 +279,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand
long endRev = Math.max(endRevision, 0);
long maxRev = repo.getLatestRevision();
if (startRevision >= 0l)
if (startRevision >= 0L)
{
startRev = startRevision;
}

View File

@@ -78,9 +78,9 @@ public class SvnBundleCommandTest extends AbstractSvnCommandTestBase
repository).bundle(req);
assertThat(res, notNullValue());
assertThat(res.getChangesetCount(), is(5l));
assertThat(res.getChangesetCount(), is(5L));
assertTrue("file does not exists", file.exists());
assertThat(file.length(), greaterThan(0l));
assertThat(file.length(), greaterThan(0L));
}
//~--- fields ---------------------------------------------------------------

View File

@@ -87,11 +87,11 @@ public class SvnUnbundleCommandTest extends AbstractSvnCommandTestBase
//J+
assertThat(res, notNullValue());
assertThat(res.getChangesetCount(), is(5l));
assertThat(res.getChangesetCount(), is(5L));
SVNRepository repo = ctx.open();
assertThat(repo.getLatestRevision(), is(5l));
assertThat(repo.getLatestRevision(), is(5L));
SvnUtil.closeSession(repo);
}