Skip to content

Commit

Permalink
rename + spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGe00 committed Sep 18, 2023
1 parent b94c23c commit f182e25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package com.linkedin.coral.coralservice.controller;

import com.linkedin.coral.coralservice.utils.VisualizationUtils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
Expand All @@ -27,14 +26,15 @@
import com.linkedin.coral.coralservice.entity.VisualizationRequestBody;
import com.linkedin.coral.coralservice.entity.VisualizationResponseBody;
import com.linkedin.coral.coralservice.utils.RewriteType;
import com.linkedin.coral.coralservice.utils.VisualizationUtils;

import static com.linkedin.coral.coralservice.utils.VisualizationUtils.*;


@RestController
@RequestMapping("/api/visualizations")
public class VisualizationController {
private File imageDir = createImageDir();
private File imageDir = getImageDir();
private VisualizationUtils visualizationUtils = new VisualizationUtils();

@PostMapping("/generategraphs")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class VisualizationUtils {

public static File createImageDir() {
public static File getImageDir() {
return new File(System.getProperty("java.io.tmpdir") + "/images" + UUID.randomUUID());
}

Expand Down

0 comments on commit f182e25

Please sign in to comment.