Skip to content

Commit 47be7fd

Browse files
committed
Apply small fixes found by IDEA inspection
1 parent c5d9dfa commit 47be7fd

File tree

16 files changed

+7
-16
lines changed

16 files changed

+7
-16
lines changed

smart-contract/hyperledger-fabric/v2/java/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ withoutOpenJML = "true"
2828

2929
## License
3030

31-
The project uses the Apache License Version 2.0. For more information see [NOTICES.md](./../../NOTICES.md), [CONTRIBUTORS.md](./../../CONTRIBUTORS.md), and [LICENSE](./../../LICENSE).
31+
The project uses the Apache License Version 2.0. For more information see [NOTICES.md](../../../../NOTICES.md), [CONTRIBUTORS.md](../../../../CONTRIBUTORS.md), and [LICENSE](../../../../LICENSE).

smart-contract/hyperledger-fabric/v2/java/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
id("com.diffplug.spotless") version "6.19.0"
2121
}
2222

23-
// java { toolchain { languageVersion.set(JavaLanguageVersion.of(17) } }
23+
// java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } }
2424

2525
group = "hu.bme.mit.ftsrg.chaincode.tpcc"
2626

smart-contract/hyperledger-fabric/v2/java/buildSrc/src/main/kotlin/hu/bme/mit/ftsrg/openjmlhelper/OpenJMLHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import org.gradle.api.logging.Logger
1717
*
1818
* Originally based on https://github.com/mingyang91/openjml-template
1919
*/
20-
val originalExecutableSuffix = ".orig"
20+
const val originalExecutableSuffix = ".orig"
2121

2222
// NOTE: ${'$'} is just an escaped $ inside a Kotlin string literal
2323
val scriptPrefix =

smart-contract/hyperledger-fabric/v2/java/figures/class/class.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@startuml "Specificaton"
1+
@startuml "Specification"
22
skinparam groupInheritance 2
33
Contract <|-- BusinessContract
44
BusinessContract ..> EnhancedContext

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/api/TPCCContractAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public String readOrder(final TPCCContext ctx, final int w_id, final int d_id, f
217217
*
218218
* @param ctx The transaction context
219219
* @param i_id The I_ID of the item
220-
* @return The item with matchign I_ID
220+
* @return The item with matching I_ID
221221
*/
222222
@Transaction(intent = Transaction.TYPE.EVALUATE)
223223
public String readItem(final TPCCContext ctx, final int i_id) throws EntityNotFoundException, SerializationException {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/input/DeliveryInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22
package hu.bme.mit.ftsrg.chaincode.tpcc.data.input;
33

4+
import hu.bme.mit.ftsrg.chaincode.tpcc.middleware.TPCCContext;
45
import lombok.EqualsAndHashCode;
56
import org.hyperledger.fabric.contract.annotation.DataType;
67
import org.hyperledger.fabric.contract.annotation.Property;
78

8-
/** Input parameters to {@link TPCC#doDelivery(TPCCContext, String)}. */
99
@EqualsAndHashCode
1010
@DataType
1111
public final class DeliveryInput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/input/NewOrderInput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import org.hyperledger.fabric.contract.annotation.DataType;
66
import org.hyperledger.fabric.contract.annotation.Property;
77

8-
/** Input parameters to {@link TPCC#doNewOrder(TPCCContext, String)}. */
98
@EqualsAndHashCode
109
@DataType
1110
public final class NewOrderInput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/input/OrderStatusInput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import org.hyperledger.fabric.contract.annotation.DataType;
66
import org.hyperledger.fabric.contract.annotation.Property;
77

8-
/** Input parameters to {@link TPCC#doOrderStatus(TPCCContext, String)}. */
98
@EqualsAndHashCode
109
@DataType
1110
public final class OrderStatusInput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/input/PaymentInput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import org.hyperledger.fabric.contract.annotation.DataType;
66
import org.hyperledger.fabric.contract.annotation.Property;
77

8-
/** Input parameters to {@link TPCC#doPayment(TPCCContext, String)}. */
98
@EqualsAndHashCode
109
@DataType
1110
public final class PaymentInput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/input/StockLevelInput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import org.hyperledger.fabric.contract.annotation.DataType;
66
import org.hyperledger.fabric.contract.annotation.Property;
77

8-
/** Input parameters to {@link TPCC#doStockLevel(TPCCContext, String)}. */
98
@EqualsAndHashCode
109
@DataType
1110
public final class StockLevelInput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/output/DeliveryOutput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.hyperledger.fabric.contract.annotation.DataType;
88
import org.hyperledger.fabric.contract.annotation.Property;
99

10-
/** Output of {@link TPCC#doDelivery(TPCCContext, String)}. */
1110
@EqualsAndHashCode
1211
@DataType
1312
public final class DeliveryOutput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/output/NewOrderOutput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import org.hyperledger.fabric.contract.annotation.DataType;
1212
import org.hyperledger.fabric.contract.annotation.Property;
1313

14-
/** Output of {@link TPCC#doNewOrder(TPCCContext, String)}. */
1514
@EqualsAndHashCode
1615
@DataType
1716
public final class NewOrderOutput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/output/OrderStatusOutput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.hyperledger.fabric.contract.annotation.DataType;
1010
import org.hyperledger.fabric.contract.annotation.Property;
1111

12-
/** Output of {@link TPCC#doOrderStatus(TPCCContext, String)}. */
1312
@EqualsAndHashCode
1413
@DataType
1514
public final class OrderStatusOutput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/output/PaymentOutput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.hyperledger.fabric.contract.annotation.DataType;
1010
import org.hyperledger.fabric.contract.annotation.Property;
1111

12-
/** Output of {@link TPCC#doPayment(TPCCContext, String)}. */
1312
@EqualsAndHashCode
1413
@DataType
1514
public final class PaymentOutput {

smart-contract/hyperledger-fabric/v2/java/src/main/java/hu/bme/mit/ftsrg/chaincode/tpcc/data/output/StockLevelOutput.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import org.hyperledger.fabric.contract.annotation.DataType;
77
import org.hyperledger.fabric.contract.annotation.Property;
88

9-
/** Output of {@link TPCC#doStockLevel(TPCCContext, String)}. */
109
@EqualsAndHashCode
1110
@DataType
1211
public final class StockLevelOutput {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{"w_id": 1 , "w_name": "HQ" , "w_street_1": "1034" , "w_street_2": "30" , "w_city": "Budapest" , "w_state": "Budaosh" , "w_zip": "+30" , "w_tax": 10 , "w_ytd": 10000
1+
{"w_id": 1 , "w_name": "HQ" , "w_street_1": "1034" , "w_street_2": "30" , "w_city": "Budapest" , "w_state": "Budapest" , "w_zip": "+30" , "w_tax": 10 , "w_ytd": 10000
22
}

0 commit comments

Comments
 (0)