Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Dec 5, 2015
1 parent 0d03349 commit 6fd8ea2
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,16 @@ public String checkUpgradeable( File storeDirectory )
{
case missingStoreFile:
throw new StoreUpgrader.UpgradeMissingStoreFilesException( getPathToStoreFile( storeDirectory, result ) );
case storeVersionNotFound:
throw new StoreUpgrader.UpgradingStoreVersionNotFoundException(
getPathToStoreFile( storeDirectory, result ) );
case unexpectedUpgradingStoreVersion:
throw new StoreUpgrader.UnexpectedUpgradingStoreVersionException(
getPathToStoreFile( storeDirectory, result ),
Legacy23Store.LEGACY_VERSION, result.actualVersion );
case storeNotCleanlyShutDown:
throw new StoreUpgrader.DatabaseNotCleanlyShutDown();
default:
throw new IllegalArgumentException( "Unexpected outcome: " + result.outcome.name() );
case storeVersionNotFound:
throw new StoreUpgrader.UpgradingStoreVersionNotFoundException(
getPathToStoreFile( storeDirectory, result ) );
case unexpectedUpgradingStoreVersion:
throw new StoreUpgrader.UnexpectedUpgradingStoreVersionException(
getPathToStoreFile( storeDirectory, result ), Legacy23Store.LEGACY_VERSION, result.actualVersion );
case storeNotCleanlyShutDown:
throw new StoreUpgrader.DatabaseNotCleanlyShutDown();
default:
throw new IllegalArgumentException( "Unexpected outcome: " + result.outcome.name() );
}
}

Expand Down

0 comments on commit 6fd8ea2

Please sign in to comment.