Skip to content

Commit

Permalink
Apply small fixes found by IDEA inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp99 committed May 15, 2024
1 parent c5d9dfa commit 47be7fd
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion smart-contract/hyperledger-fabric/v2/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ withoutOpenJML = "true"

## License

The project uses the Apache License Version 2.0. For more information see [NOTICES.md](./../../NOTICES.md), [CONTRIBUTORS.md](./../../CONTRIBUTORS.md), and [LICENSE](./../../LICENSE).
The project uses the Apache License Version 2.0. For more information see [NOTICES.md](../../../../NOTICES.md), [CONTRIBUTORS.md](../../../../CONTRIBUTORS.md), and [LICENSE](../../../../LICENSE).
2 changes: 1 addition & 1 deletion smart-contract/hyperledger-fabric/v2/java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
id("com.diffplug.spotless") version "6.19.0"
}

// java { toolchain { languageVersion.set(JavaLanguageVersion.of(17) } }
// java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } }

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.gradle.api.logging.Logger
*
* Originally based on https://github.com/mingyang91/openjml-template
*/
val originalExecutableSuffix = ".orig"
const val originalExecutableSuffix = ".orig"

// NOTE: ${'$'} is just an escaped $ inside a Kotlin string literal
val scriptPrefix =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@startuml "Specificaton"
@startuml "Specification"
skinparam groupInheritance 2
Contract <|-- BusinessContract
BusinessContract ..> EnhancedContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public String readOrder(final TPCCContext ctx, final int w_id, final int d_id, f
*
* @param ctx The transaction context
* @param i_id The I_ID of the item
* @return The item with matchign I_ID
* @return The item with matching I_ID
*/
@Transaction(intent = Transaction.TYPE.EVALUATE)
public String readItem(final TPCCContext ctx, final int i_id) throws EntityNotFoundException, SerializationException {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* SPDX-License-Identifier: Apache-2.0 */
package hu.bme.mit.ftsrg.chaincode.tpcc.data.input;

import hu.bme.mit.ftsrg.chaincode.tpcc.middleware.TPCCContext;
import lombok.EqualsAndHashCode;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Input parameters to {@link TPCC#doDelivery(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class DeliveryInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Input parameters to {@link TPCC#doNewOrder(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class NewOrderInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Input parameters to {@link TPCC#doOrderStatus(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class OrderStatusInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Input parameters to {@link TPCC#doPayment(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class PaymentInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Input parameters to {@link TPCC#doStockLevel(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class StockLevelInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Output of {@link TPCC#doDelivery(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class DeliveryOutput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Output of {@link TPCC#doNewOrder(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class NewOrderOutput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Output of {@link TPCC#doOrderStatus(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class OrderStatusOutput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Output of {@link TPCC#doPayment(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class PaymentOutput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

/** Output of {@link TPCC#doStockLevel(TPCCContext, String)}. */
@EqualsAndHashCode
@DataType
public final class StockLevelOutput {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"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
{"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
}

0 comments on commit 47be7fd

Please sign in to comment.