| 1 | package fi.eis.libraries.di.context.deployment; | |
| 2 | ||
| 3 | import java.net.MalformedURLException; | |
| 4 | import java.net.URL; | |
| 5 | ||
| 6 | class ZipFileEntry implements Entry { | |
| 7 | ||
| 8 | private String name; | |
| 9 | private String archiveUrl; | |
| 10 | ||
| 11 | ZipFileEntry(String archiveUrl) { | |
| 12 |
1
1. <init> : Removed assignment to member variable archiveUrl → SURVIVED |
this.archiveUrl = archiveUrl; |
| 13 | } | |
| 14 | ||
| 15 | @Override | |
| 16 | public String getName() { | |
| 17 |
1
1. getName : replaced return value with "" for fi/eis/libraries/di/context/deployment/ZipFileEntry::getName → KILLED |
return name; |
| 18 | } | |
| 19 | ||
| 20 | ZipFileEntry setName(String name) { | |
| 21 |
1
1. setName : Removed assignment to member variable name → KILLED |
this.name = name; |
| 22 |
1
1. setName : replaced return value with null for fi/eis/libraries/di/context/deployment/ZipFileEntry::setName → KILLED |
return this; |
| 23 | } | |
| 24 | ||
| 25 | @Override | |
| 26 | public URL getUrl() throws MalformedURLException { | |
| 27 |
8
1. getUrl : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE 2. getUrl : replaced return value with null for fi/eis/libraries/di/context/deployment/ZipFileEntry::getUrl → NO_COVERAGE 3. getUrl : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE 4. getUrl : removed call to java/net/URL::<init> → NO_COVERAGE 5. getUrl : removed call to java/lang/StringBuilder::append → NO_COVERAGE 6. getUrl : removed call to java/lang/StringBuilder::toString → NO_COVERAGE 7. getUrl : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE 8. getUrl : removed call to java/lang/StringBuilder::append → NO_COVERAGE |
return new URL(archiveUrl + name); |
| 28 | } | |
| 29 | ||
| 30 | } | |
Mutations | ||
| 12 |
1.1 |
|
| 17 |
1.1 |
|
| 21 |
1.1 |
|
| 22 |
1.1 |
|
| 27 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 |