src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Check the future node count against the maximum supported by the current API
     * 
     * @param newCount the node count we would like to have
     * @throws OsmIllegalOperationException if the count is larger than the maximum supported
     */
Check the future node count against the maximum supported by the current API

@param newCount the node count we would like to have
@throws OsmIllegalOperationException if the count is larger than the maximum supported
Check the future node count against the maximum supported by the current API @param newCount the node count we would like to have @throws OsmIllegalOperationException if the count is larger than the maximum supported
void validateWayNodeCount(final int newCount) {
        Logic logic = App.getLogic();
        if (logic != null) {
            Preferences prefs = logic.getPrefs();
            if (prefs != null && newCount > prefs.getServer().getCachedCapabilities().getMaxWayNodes()) {
                throw new OsmIllegalOperationException(App.resources().getString(R.string.exception_too_many_nodes));
            }
        }
    }
void validateWayNodeCount ( final int newCount ) { Logic logic = App . getLogic ( ) ; if ( logic != null ) { Preferences prefs = logic . getPrefs ( ) ; if ( prefs != null && newCount > prefs . getServer ( ) . getCachedCapabilities ( ) . getMaxWayNodes ( ) ) { throw new OsmIllegalOperationException ( App . resources ( ) . getString ( R . string . exception_too_many_nodes ) ) ; } } }
Check the future node count against the maximum supported by the current API
Check the future node count against the maximum supported by the current API