mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 19:45:51 +01:00
style: use uppercase L instead of lowercase version for better readability
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ---------------------------------------------------------------
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user