Skip to content

Commit bff063e

Browse files
committed
Solving Memory Leak produced by hateoas link creation, added change name functionality
1 parent 18a3d4e commit bff063e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<dependency>
3333
<groupId>org.springframework.boot</groupId>
3434
<artifactId>spring-boot-starter-web</artifactId>
35+
<version>2.4.1</version>
3536
</dependency>
3637

3738
<dependency>
@@ -54,8 +55,9 @@
5455
</dependency>
5556

5657
<dependency>
57-
<groupId>org.springframework.boot</groupId>
58-
<artifactId>spring-boot-starter-hateoas</artifactId>
58+
<groupId>org.springframework.hateoas</groupId>
59+
<artifactId>spring-hateoas</artifactId>
60+
<version>1.2.2</version>
5961
</dependency>
6062

6163
<!-- Persistence -->

src/main/java/com/patternpedia/api/rest/controller/PatternController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ EntityModel<Pattern> updatePatternViaPut(@PathVariable UUID patternLanguageId, @
389389
}
390390
persistedVersion.setIconUrl(pattern.getIconUrl());
391391
persistedVersion.setContent(pattern.getContent());
392+
persistedVersion.setName(pattern.getName());
392393

393394
pattern = this.patternService.updatePattern(persistedVersion);
394395
return new EntityModel<>(pattern,

0 commit comments

Comments
 (0)