@Override
    public long setInfo(String key, String info) {
        final String k = key;
        final String i = info;
        try {
            Status status = inTransaction(new Task() {
                @Override
                public Status run() {
                    try {
                        forest.rawPut("info", k, null, i == null ? null : i.getBytes());
                        return new Status(Status.OK);
                    } catch (ForestException e) {
                        Log.e(TAG, "Error in KeyStoreWriter.set()", e);
                        return ForestBridge.err2status(e);
                    }
                }
            });
            return status.getCode();
        } catch (Exception e) {
            Log.e(TAG, "Exception in setInfo()", e);
            return Status.UNKNOWN;
        }
    }
@ Override public long setInfo ( String key , String info ) { final String k = key ; final String i = info ; try { Status status = inTransaction ( new Task ( ) { @ Override public Status run ( ) { try { forest . rawPut ( "info" , k , null , i == null ? null : i . getBytes ( ) ) ; return new Status ( Status . OK ) ; } catch ( ForestException e ) { Log . e ( TAG , "Error in KeyStoreWriter.set()" , e ) ; return ForestBridge . err2status ( e ) ; } } } ) ; return status . getCode ( ) ; } catch ( Exception e ) { Log . e ( TAG , "Exception in setInfo()" , e ) ; return Status . UNKNOWN ; } }
TODO return value from long to Status