Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
ldetmer committed Dec 4, 2024
1 parent 416369b commit 6036be3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand All @@ -14,19 +14,12 @@

package com.google.api.client.http.apache.v5;

import com.google.api.client.http.*;
import org.apache.hc.client5.http.classic.methods.*;
import org.apache.hc.core5.http.*;
import org.apache.hc.core5.http.io.entity.*;
import org.apache.hc.core5.http.protocol.*;
import org.junit.*;
import org.apache.hc.client5.http.classic.methods.HttpPost;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
import org.junit.Test;
import java.io.InputStream;

import java.io.*;
import java.nio.charset.*;
import java.util.*;
import java.util.concurrent.atomic.*;

import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;

public class Apache5HttpResponseTest {
@Test
Expand All @@ -44,4 +37,4 @@ public void testNullContent() throws Exception {

assertNotNull(content);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand All @@ -14,12 +14,9 @@

package com.google.api.client.http.apache.v5;

import org.apache.hc.client5.http.classic.methods.*;
import org.junit.*;

import java.io.*;

import static org.junit.Assert.*;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;

public class Apache5ResponseContentTest {
@Test
Expand Down Expand Up @@ -47,4 +44,4 @@ public void testNullWrappedContent_doesNotThrowExceptionOnClose() throws Excepti

response.close();
}
}
}

0 comments on commit 6036be3

Please sign in to comment.