ZuInnoTe / hadoopcryptoledger

Hadoop Crypto Ledger - Analyzing CryptoLedgers, such as Bitcoin Blockchain, on Big Data platforms, such as Hadoop/Spark/Flink/Hive
Apache License 2.0
141 stars 51 forks source link

Refactor code smells #88

Closed BennyDanielT closed 2 years ago

BennyDanielT commented 2 years ago

Refactored Code Smells

BennyDanielT commented 2 years ago

The following items were changed:

Pull-Up Method to Abstract Class to remove Code Duplication:

Classes Involved:

Rename Variables that contain typos:

Extract a large method into smaller methods:

Resolve Cyclic Dependency between EthereumTransaction & EthereumUtil by introducing an Interface and making EthereumUtil implement it

Extract a class that has a high Lack of Cohesion among Methods (LCOM) value and decompose it into cohesive classes

Class Decomposed - inputformat/src/test/java/org/zuinnote/hadoop/ethereum/format/common/EthereumUtilTest.java New Classes: