Skip to content

Commit

Permalink
Fix typing in LifeSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegrohmann committed Oct 11, 2016
1 parent 222cc20 commit 0c1733d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -261,7 +261,7 @@ private boolean notAlreadyAdded( Lifecycle instance )
return true;
}

public synchronized boolean remove( Object instance )
public synchronized boolean remove( Lifecycle instance )
{
for ( int i = 0; i < instances.size(); i++ )
{
Expand Down Expand Up @@ -508,7 +508,7 @@ public String toString()
return instance.toString() + ": " + currentStatus.name();
}

public boolean isInstance( Object instance )
public boolean isInstance( Lifecycle instance )
{
return this.instance == instance;
}
Expand Down
Expand Up @@ -171,7 +171,7 @@ public static IntFunction<String> constant( final String value )
private ManagedCluster managedCluster;
private final boolean consistencyCheck;
private final int firstInstanceId;
LifeSupport life;
private LifeSupport life;

private ClusterManager( Builder builder )
{
Expand Down Expand Up @@ -1217,7 +1217,6 @@ public RepairKit shutdown( HighlyAvailableGraphDatabase db )
InstanceId serverId =
db.getDependencyResolver().resolveDependency( Config.class ).get( ClusterSettings.server_id );
members.remove( serverId );
life.remove( db );
db.shutdown();
await( entireClusterSeesMemberAsNotAvailable( db ) );
return wrap( new StartDatabaseAgainKit( this, serverId ) );
Expand Down

0 comments on commit 0c1733d

Please sign in to comment.