Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaYtterbrink committed Mar 27, 2018
1 parent 64c83ea commit 26fe33a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Expand Up @@ -26,7 +26,12 @@

import org.neo4j.values.storable.ValueGroup;

import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.*;
import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.date;
import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.localDateTime;
import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.zonedDateTime;
import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.localTime;
import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.zonedTime;
import static org.neo4j.kernel.impl.index.schema.TemporalIndexCache.Offset.duration;

/**
* Cache for lazily creating parts of the temporal index. Each part is created using the factory
Expand Down
Expand Up @@ -62,14 +62,14 @@ public void stressCache() throws Exception
}
}

static private final CoordinateReferenceSystem[] coordinateReferenceSystems =
private static final CoordinateReferenceSystem[] coordinateReferenceSystems =
Iterators.stream( CoordinateReferenceSystem.all() ).toArray( CoordinateReferenceSystem[]::new );

static class CacheStresser extends Thread
{
SpatialIndexCache<String,Exception> cache;
Random r = new Random();
Exception failed = null;
Exception failed;

CacheStresser( SpatialIndexCache<String,Exception> cache )
{
Expand Down Expand Up @@ -128,7 +128,7 @@ public String newSpatial( CoordinateReferenceSystem crs ) throws Exception
{
for ( int i = 0; i < coordinateReferenceSystems.length; i++ )
{
if (coordinateReferenceSystems[i].equals( crs ))
if ( coordinateReferenceSystems[i].equals( crs ) )
{
int count = counters[i].incrementAndGet();
if ( count > 1 )
Expand Down
Expand Up @@ -97,7 +97,7 @@ public void stressCache() throws Exception
}
}

static private final ValueGroup[] valueGroups = {
private static final ValueGroup[] valueGroups = {
ZONED_DATE_TIME,
LOCAL_DATE_TIME,
DATE,
Expand All @@ -109,7 +109,7 @@ static class CacheStresser extends Thread
{
TemporalIndexCache<String,Exception> cache;
Random r = new Random();
Exception failed = null;
Exception failed;

CacheStresser( TemporalIndexCache<String,Exception> cache )
{
Expand Down

0 comments on commit 26fe33a

Please sign in to comment.