@Test public void ensureBuilderIsCleared() throws Exception { Request request1 = new Request.Builder(RESOURCE_ID_URI).build(); Request request2 = new Request.Builder(URI_1).build(); Utils.createKey(request1); assertThat(Utils.MAIN_THREAD_KEY_BUILDER.length()).isEqualTo(0); Utils.createKey(request2); assertThat(Utils.MAIN_THREAD_KEY_BUILDER.length()).isEqualTo(0); }
static String createKey(Request data) { String result = createKey(data, MAIN_THREAD_KEY_BUILDER); MAIN_THREAD_KEY_BUILDER.setLength(0); return result; }
Utils { static String createKey(Request data) { String result = createKey(data, MAIN_THREAD_KEY_BUILDER); MAIN_THREAD_KEY_BUILDER.setLength(0); return result; } }
Utils { static String createKey(Request data) { String result = createKey(data, MAIN_THREAD_KEY_BUILDER); MAIN_THREAD_KEY_BUILDER.setLength(0); return result; } private  Utils(); }
Utils { static String createKey(Request data) { String result = createKey(data, MAIN_THREAD_KEY_BUILDER); MAIN_THREAD_KEY_BUILDER.setLength(0); return result; } private  Utils();  }
Utils { static String createKey(Request data) { String result = createKey(data, MAIN_THREAD_KEY_BUILDER); MAIN_THREAD_KEY_BUILDER.setLength(0); return result; } private  Utils();   }