Program: 91221
Project: 91221
Buggy source:
private GlideraService(@NonNull final NetworkParameters networkParameters){
  Preconditions.checkNotNull(networkParameters);
  this.networkParameters=networkParameters;
  this.baseUrl=getBaseUrl(networkParameters);
  if (networkParameters.isTestnet()) {
    clientId=TESTNET_CLIENT_ID;
  }
 else {
    clientId=MAINNET_CLIENT_ID;
  }
  final Interceptor apiCredentialInterceptor=new Interceptor(){
    @Override public Response intercept(    Chain chain) throws IOException {
      Request request=chain.request();
      if (_oAuth1Response != null) {
        Request.Builder requestBuilder=request.newBuilder();
synchronized (nonceSync) {
          final String nonce=String.valueOf(getNonce());
          final String uri=request.urlString();
          String message=nonce + uri;
          if (request.body() != null && request.body().contentLength() > 0) {
            Buffer bodyBuffer=new Buffer();
            request.body().writeTo(bodyBuffer);
            byte[] bodyBytes=bodyBuffer.readByteArray();
            String body=new String(bodyBytes,Charsets.UTF_8);
            message+=body;
          }
          final byte[] messageBytes=message.getBytes(Charsets.UTF_8);
          final byte[] secretBytes=_oAuth1Response.getSecret().getBytes(Charsets.UTF_8);
          final byte[] signatureBytes=Hmac.hmacSha256(secretBytes,messageBytes);
          ByteArrayOutputStream stream=new ByteArrayOutputStream();
          Hex.encode(signatureBytes,stream);
          final String signature=stream.toString();
          request=requestBuilder.header(HEADER_ACCESS_KEY,_oAuth1Response.getAccess_key()).header(HEADER_ACCESS_NONCE,nonce).header(HEADER_ACCESS_SIGNATURE,signature).build();
        }
      }
      return chain.proceed(request);
    }
  }
;
  OkHttpClient client=new OkHttpClient();
  client.setConnectTimeout(15000,TimeUnit.MILLISECONDS);
  client.setReadTimeout(15000,TimeUnit.MILLISECONDS);
  client.networkInterceptors().add(apiCredentialInterceptor);
  ObjectMapper objectMapper=new ObjectMapper();
  objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
  objectMapper.registerModule(new WapiJsonModule());
  RequestInterceptor requestInterceptor=new RequestInterceptor(){
    @Override public void intercept(    RequestFacade requestFacade){
      requestFacade.addHeader(HEADER_CLIENT_ID,clientId);
    }
  }
;
  RestAdapter adapter=new RestAdapter.Builder().setEndpoint(baseUrl + "String_Node_Str" + API_VERSION+ "String_Node_Str").setLogLevel(RestAdapter.LogLevel.BASIC).setConverter(new JacksonConverter(objectMapper)).setClient(new OkClient(client)).setRequestInterceptor(requestInterceptor).build();
  glideraApi=adapter.create(GlideraApi.class);
}

Fixed version (ground truth):
private GlideraService(@NonNull final NetworkParameters networkParameters){
  Preconditions.checkNotNull(networkParameters);
  this.networkParameters=networkParameters;
  this.baseUrl=getBaseUrl(networkParameters);
  if (networkParameters.isTestnet()) {
    clientId=TESTNET_CLIENT_ID;
  }
 else {
    clientId=MAINNET_CLIENT_ID;
  }
  final Interceptor apiCredentialInterceptor=new Interceptor(){
    @Override public Response intercept(    Chain chain) throws IOException {
      Request request=chain.request();
      if (_oAuth1Response != null) {
        Request.Builder requestBuilder=request.newBuilder();
synchronized (nonceSync) {
          final String nonce=String.valueOf(getNonce());
          final String uri=request.urlString();
          String message=nonce + uri;
          if (request.body() != null && request.body().contentLength() > 0) {
            Buffer bodyBuffer=new Buffer();
            request.body().writeTo(bodyBuffer);
            byte[] bodyBytes=bodyBuffer.readByteArray();
            String body=new String(bodyBytes,Charsets.UTF_8);
            message+=body;
          }
          final byte[] messageBytes=message.getBytes(Charsets.UTF_8);
          final byte[] secretBytes=_oAuth1Response.getSecret().getBytes(Charsets.UTF_8);
          final byte[] signatureBytes=Hmac.hmacSha256(secretBytes,messageBytes);
          ByteArrayOutputStream stream=new ByteArrayOutputStream();
          Hex.encode(signatureBytes,stream);
          final String signature=stream.toString();
          request=requestBuilder.header(HEADER_ACCESS_KEY,_oAuth1Response.getAccess_key()).header(HEADER_ACCESS_NONCE,nonce).header(HEADER_ACCESS_SIGNATURE,signature).build();
        }
      }
      return chain.proceed(request);
    }
  }
;
  OkHttpClient client=new OkHttpClient();
  client.setConnectTimeout(15000,TimeUnit.MILLISECONDS);
  client.setReadTimeout(15000,TimeUnit.MILLISECONDS);
  client.networkInterceptors().add(apiCredentialInterceptor);
  ObjectMapper objectMapper=new ObjectMapper();
  objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
  objectMapper.registerModule(new WapiJsonModule());
  RequestInterceptor requestInterceptor=new RequestInterceptor(){
    @Override public void intercept(    RequestFacade requestFacade){
      requestFacade.addHeader(HEADER_CLIENT_ID,clientId);
    }
  }
;
  RestAdapter adapter=new RestAdapter.Builder().setEndpoint(baseUrl + "String_Node_Str" + API_VERSION+ "String_Node_Str").setLogLevel(RestAdapter.LogLevel.BASIC).setConverter(new JacksonConverter(objectMapper)).setClient(new NullBodyAwareOkClient(client)).setRequestInterceptor(requestInterceptor).build();
  glideraApi=adapter.create(GlideraApi.class);
}