Skip to content

Commit 0de87e4

Browse files
committed
cleanup: fix lint errors
1 parent 6da6771 commit 0de87e4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

retail/interactive-tutorials/src/main/java/product/ImportProductsGcs.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public static void main(String[] args) throws IOException, InterruptedException
5252

5353
// To check error handling, use an invalid catalog in request
5454
// branchName = String.format(
55-
// "projects/%s/locations/global/catalogs/invalid_catalog/branches/default_branch", projectId);
55+
// "projects/%s/locations/global/catalogs/invalid_catalog/branches/default_branch",
56+
// projectId);
5657

5758
String gcsProductsObject = "products.json";
5859
// To check error handling, use an invalid product JSON.

retail/interactive-tutorials/src/test/java/product/CreateProductTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public class CreateProductTest {
4141

4242
@Before
4343
public void setUp() throws IOException, InterruptedException, ExecutionException {
44-
String projectId = ServiceOptions.getDefaultProjectId();
45-
String branchName =
44+
final String projectId = ServiceOptions.getDefaultProjectId();
45+
final String branchName =
4646
String.format(
4747
"projects/%s/locations/global/catalogs/default_catalog/branches/0", projectId);
48-
String generatedProductId = UUID.randomUUID().toString();
48+
final String generatedProductId = UUID.randomUUID().toString();
4949
bout = new ByteArrayOutputStream();
5050
PrintStream out = new PrintStream(bout);
5151
originalPrintStream = System.out;

0 commit comments

Comments
 (0)