Conversation
Codecov Report
@@ Coverage Diff @@
## development #257 +/- ##
===============================================
- Coverage 95.62% 94.35% -1.27%
===============================================
Files 186 173 -13
Lines 16565 15443 -1122
Branches 270 267 -3
===============================================
- Hits 15840 14571 -1269
- Misses 725 872 +147
Continue to review full report at Codecov.
|
TuanAnhNguyen69
left a comment
There was a problem hiding this comment.
Please check for some mistakes in comments
java/util/HashMap/HashMapTest.cpp
Outdated
| result = anotherMap.get(notExpectedKey); | ||
| hashMap.put("Key1", "Value of Key1"); | ||
| hashMap.put("Key2", "Value of Key2"); | ||
| HashMap<String, String> anotherMap = (HashMap<String, String>) hashMap.clone(); |
There was a problem hiding this comment.
Please remove this cast, is't not necessary
java/util/HashMap/HashMapTest.cpp
Outdated
|
|
||
| TEST (JavaUtil, HashMapReplaceSpecifiedValue) { | ||
| // Given valid hash map to test | ||
| TEST(JavaUtil, HashMapReplace2) { |
There was a problem hiding this comment.
Please rename this test
kernel/type.h
Outdated
| #define FALSE 0 | ||
| #define NOT_FOUND -1 | ||
| #define MAX_STRING_LENGTH 100000 | ||
| #define BiConsumer std::function |
There was a problem hiding this comment.
I think we should comment this and wait for BiConsumer class
There was a problem hiding this comment.
Please remove this definition because it's wrong. Should be BiConsumer implementation
java/util/HashMap/HashMap.hpp
Outdated
| * | ||
| * @param action | ||
| */ | ||
| void forEach (BiConsumer<void(Key, Value)> action) { |
There was a problem hiding this comment.
I think we should comment this and wait for BiConsumer class
| * | ||
| * @return a set view of the keys contained in this map | ||
| */ | ||
| // Set<Key> keySet() { |
There was a problem hiding this comment.
Set class is available, what do you really need in Set class?
loint
left a comment
There was a problem hiding this comment.
Please remove all binaries in your PR.
kernel/type.h
Outdated
| #define FALSE 0 | ||
| #define NOT_FOUND -1 | ||
| #define MAX_STRING_LENGTH 100000 | ||
| #define BiConsumer std::function |
There was a problem hiding this comment.
Please remove this definition because it's wrong. Should be BiConsumer implementation
dthongvl
left a comment
There was a problem hiding this comment.
Please remove unused files and ignore them.
Please update methods' s comment that use null
kernel/Type.hpp
Outdated
|
|
||
| #define NOT_FOUND -1 | ||
| #define MAX_STRING_LENGTH 100000 | ||
| #define BiConsumer std::function |
java/util/HashMap/HashMap.hpp
Outdated
| * Compares the specified object | ||
| * with this map for equality. | ||
| * | ||
| * @param object |
java/util/HashMap/HashMap.hpp
Outdated
| * | ||
| * @param action | ||
| */ | ||
| void forEach(BiConsumer<void(Key, Value)> action) { |
There was a problem hiding this comment.
Please help me disable this function until BiConsumer is implemented
java/util/HashMap/HashMap.hpp
Outdated
| * {Map.Entry hashCode()} on each element (entry) in the | ||
| * set, and adding up the results. | ||
| * | ||
| * @return the hash code value for this map |
java/util/HashMap/HashMap.hpp
Outdated
| * Object. | ||
| * | ||
| * This implementation iterates over entrySet(), calling | ||
| * {Map.Entry hashCode()} on each element (entry) in the |
java/util/HashMap/HashMap.hpp
Outdated
| * Set of hash map entries | ||
| * | ||
| * Returns a Set view of the mappings contained in this map. | ||
| * @return Set<Map.Entry<Key,Value>> - a set view of the mappings contained in this map |
There was a problem hiding this comment.
Please help me update return data type.
java/util/HashMap/HashMap.hpp
Outdated
|
|
||
| /** | ||
| * Returns the value to which the specified key is mapped, | ||
| * or null if this map contains no mapping for the key |
There was a problem hiding this comment.
default constructor or something, not null
java/util/HashMap/HashMapTest.cpp
Outdated
| assertEquals(100, counter); | ||
| HashMap<String, String> hashMap; | ||
|
|
||
| for (int index = 1; index <= 100; index++) { |
There was a problem hiding this comment.
Please create int index; outside the loop
|
This PR will be close because no progress. |
Edited + checked old source.
Built + Add test for new method.