private void validateBlockletSize(){
  String blockletSizeStr=carbonProperties.getProperty(CarbonCommonConstants.BLOCKLET_SIZE,CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL);
  try {
    int blockletSize=Integer.parseInt(blockletSizeStr);
    if (blockletSize < CarbonCommonConstants.BLOCKLET_SIZE_MIN_VAL || blockletSize > CarbonCommonConstants.BLOCKLET_SIZE_MAX_VAL) {
      LOGGER.info("The blocklet size value \"" + blockletSizeStr + "\" is invalid. Using the default value \""+ CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL);
      carbonProperties.setProperty(CarbonCommonConstants.BLOCKLET_SIZE,CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL);
    }
  }
 catch (  NumberFormatException e) {
    LOGGER.info("The blocklet size value \"" + blockletSizeStr + "\" is invalid. Using the default value \""+ CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL);
    carbonProperties.setProperty(CarbonCommonConstants.BLOCKLET_SIZE,CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL);
  }
}

private void validateBlockletSize ( ) { String blockletSizeStr = carbonProperties . getProperty ( CarbonCommonConstants . BLOCKLET_SIZE , CarbonCommonConstants . BLOCKLET_SIZE_DEFAULT_VAL ) ; try { int blockletSize = Integer . parseInt ( blockletSizeStr ) ; if ( blockletSize < CarbonCommonConstants . BLOCKLET_SIZE_MIN_VAL || blockletSize > CarbonCommonConstants . BLOCKLET_SIZE_MAX_VAL ) { LOGGER . info ( "The blocklet size value \"" + blockletSizeStr + "\" is invalid. Using the default value \"" + CarbonCommonConstants . BLOCKLET_SIZE_DEFAULT_VAL ) ; carbonProperties . setProperty ( CarbonCommonConstants . BLOCKLET_SIZE , CarbonCommonConstants . BLOCKLET_SIZE_DEFAULT_VAL ) ; } } catch ( NumberFormatException e ) { LOGGER . info ( "The blocklet size value \"" + blockletSizeStr + "\" is invalid. Using the default value \"" + CarbonCommonConstants . BLOCKLET_SIZE_DEFAULT_VAL ) ; carbonProperties . setProperty ( CarbonCommonConstants . BLOCKLET_SIZE , CarbonCommonConstants . BLOCKLET_SIZE_DEFAULT_VAL ) ; } }
this method validates the blocklet size
