Implemented Device parser by KostyaSha · Pull Request #593 · docker-java/docker-java
KostyaSha
changed the title
Implemented Device parser
WIP Implemented Device parser
Current coverage is 30.29%
- 3 files (not in diff) in
...erjava/netty/handlerwere modified. more- Misses
-19 - Partials
-2 - Hits
+21
- Misses
- 17 files (not in diff) in
...ockerjava/netty/execwere modified. more- Misses
-36 - Hits
+36
- Misses
- 3 files (not in diff) in
...hub/dockerjava/nettywere modified. more- Misses
-17 - Hits
+17
- Misses
- 5 files (not in diff) in
...kerjava/jaxrs/filterwere modified. more- Misses
-23 - Hits
+23
- Misses
- 2 files (not in diff) in
...java/jaxrs/connectorwere modified. more- Misses
-49 - Hits
+49
- Misses
- 22 files (not in diff) in
...hub/dockerjava/jaxrswere modified. more- Misses
-66 - Hits
+66
- Misses
- 5 files (not in diff) in
...dockerjava/core/utilwere modified. more- Misses
-17 - Partials
-6 - Hits
+23
- Misses
- 2 files (not in diff) in
...java/core/dockerfilewere modified. more- Misses
-16 - Partials
-11 - Hits
+27
- Misses
- 12 files (not in diff) in
...kerjava/core/commandwere modified. more- Misses
-34 - Partials
-6 - Hits
+40
- Misses
- 3 files (not in diff) in
...ockerjava/core/asyncwere modified. more- Misses
-5 - Partials
-2 - Hits
+7
- Misses
@@ master #593 diff @@ ========================================== Files 296 296 Lines 6218 6245 +27 Methods 0 0 Messages 0 0 Branches 547 553 +6 ========================================== + Hits 1420 1892 +472 + Misses 4706 4353 -353 + Partials 92 0 -92
Powered by Codecov. Last updated by 3a33182...430a576
KostyaSha
changed the title
WIP Implemented Device parser
Implemented Device parser
| * @link https://github.com/docker/docker/blob/6b4a46f28266031ce1a1315f17fb69113a06efe1/runconfig/opts/parse.go#L796 | ||
| */ | ||
| private static boolean validDeviceMode(String deviceMode) { | ||
| Map<String, Boolean> validModes = new HashMap<>(3); |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `validModes' map should be declared as static member and not declared inline.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean under not declared inline.?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean it should be declared at the class level not in the method itself.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It must be mutable, it changes true to false to exclude double letters.
@marcuslinke updated, feel free to squash merge (dropdown in merge button) if it LGTY.
panuse pushed a commit to TuKangTech/docker-java that referenced this pull request
Aug 20, 2017This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters