package io.github.droidkaigi.confsched2017.util;


import android.content.Context;

import java.io.IOException;
import java.io.InputStream;

import timber.log.Timber;

public final class AssetsUtil {

    private AssetsUtil() {
        // No-op
    }

    /**
     * Loads json string from the assets folder
     *
     * @param context      The calling context
     * @param jsonFileName The file name of the json string
     * @return The JSON string
     */
    public static String loadJSONFromAsset(Context context, final String jsonFileName) {
        String json = null;
        InputStream is = null;
        try {
            is = context.getAssets().open("json/" + jsonFileName);
            int size = is.available();
            byte[] buffer = new byte[size];
            is.read(buffer);
            json = new String(buffer, "UTF-8");
        } catch (IOException e) {
            Timber.e(AssetsUtil.class.getSimpleName(), e.getMessage(), e);

            try {
                if (is != null) {
                    is.close();
                }
            } catch (IOException exp) {
                Timber.e(AssetsUtil.class.getSimpleName(), e.getMessage(), exp);
            }
        }
        return json;
    }
}

@@ -952,16 +952,35 @@
 (), e);%0A
+        %7D finally %7B
 %0A       
@@ -1108,18 +1108,16 @@
 eption e
-xp
 ) %7B%0A    
@@ -1192,10 +1192,8 @@
 ), e
-xp
 );%0A 

Fix try-catch block