From f411dcd6342b8de3bc220e81d9faa0df8b06acd1 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 23 Feb 2022 16:00:22 +0100 Subject: [PATCH] remove redundant private modifier from various enum constructors --- core/src/main/java/org/bitcoinj/core/InventoryItem.java | 2 +- core/src/main/java/org/bitcoinj/core/Transaction.java | 2 +- core/src/main/java/org/bitcoinj/script/Script.java | 2 +- core/src/main/java/org/bitcoinj/script/ScriptError.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/InventoryItem.java b/core/src/main/java/org/bitcoinj/core/InventoryItem.java index 785dee985..9b017b332 100644 --- a/core/src/main/java/org/bitcoinj/core/InventoryItem.java +++ b/core/src/main/java/org/bitcoinj/core/InventoryItem.java @@ -35,7 +35,7 @@ public class InventoryItem { public final int code; - private Type(int code) { + Type(int code) { this.code = code; } diff --git a/core/src/main/java/org/bitcoinj/core/Transaction.java b/core/src/main/java/org/bitcoinj/core/Transaction.java index 39987924a..700d02906 100644 --- a/core/src/main/java/org/bitcoinj/core/Transaction.java +++ b/core/src/main/java/org/bitcoinj/core/Transaction.java @@ -565,7 +565,7 @@ public class Transaction extends ChildMessage { /** * @param value */ - private SigHash(final int value) { + SigHash(final int value) { this.value = value; } diff --git a/core/src/main/java/org/bitcoinj/script/Script.java b/core/src/main/java/org/bitcoinj/script/Script.java index 374737177..dd4a934ca 100644 --- a/core/src/main/java/org/bitcoinj/script/Script.java +++ b/core/src/main/java/org/bitcoinj/script/Script.java @@ -64,7 +64,7 @@ public class Script { public final int id; - private ScriptType(int id) { + ScriptType(int id) { this.id = id; } } diff --git a/core/src/main/java/org/bitcoinj/script/ScriptError.java b/core/src/main/java/org/bitcoinj/script/ScriptError.java index cf28d767d..5630d9ec7 100644 --- a/core/src/main/java/org/bitcoinj/script/ScriptError.java +++ b/core/src/main/java/org/bitcoinj/script/ScriptError.java @@ -82,7 +82,7 @@ public enum ScriptError { private final String mnemonic; private static final Map mnemonicToScriptErrorMap; - private ScriptError(String name) { + ScriptError(String name) { this.mnemonic = name; }