From 575632413a6d6f00e329e79275a73a23382452c1 Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 14 Jan 2020 23:34:56 +0000 Subject: [PATCH] Add missing private modifier --- bundler/src/main/java/dev/openrs2/bundler/Bundler.kt | 2 +- .../dev/openrs2/deob/ast/transform/IncrementTransformer.kt | 2 +- .../dev/openrs2/deob/ast/transform/NewInstanceTransformer.kt | 2 +- .../java/dev/openrs2/deob/transform/OverrideTransformer.kt | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt b/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt index 94c27a64d5..b135e67087 100644 --- a/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt +++ b/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt @@ -125,7 +125,7 @@ class Bundler @Inject constructor(publicKeyTransformer: PublicKeyTransformer) { } companion object { - val logger = InlineLogger() + private val logger = InlineLogger() val TRANSFORMERS = listOf( BufferSizeTransformer(), CachePathTransformer(), diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/IncrementTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/IncrementTransformer.kt index 788b0a4322..4037de9d41 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/IncrementTransformer.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/IncrementTransformer.kt @@ -31,7 +31,7 @@ class IncrementTransformer : Transformer() { } companion object { - fun prefixToPostfix(operator: UnaryExpr.Operator) = when (operator) { + private fun prefixToPostfix(operator: UnaryExpr.Operator) = when (operator) { UnaryExpr.Operator.PREFIX_INCREMENT -> UnaryExpr.Operator.POSTFIX_INCREMENT UnaryExpr.Operator.PREFIX_DECREMENT -> UnaryExpr.Operator.POSTFIX_DECREMENT else -> operator diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NewInstanceTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NewInstanceTransformer.kt index 04f1f185b1..25e7cd24bf 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NewInstanceTransformer.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/NewInstanceTransformer.kt @@ -21,6 +21,6 @@ class NewInstanceTransformer : Transformer() { } companion object { - val CONSTRUCTOR_METHODS = setOf("getConstructor", "getDeclaredConstructor") + private val CONSTRUCTOR_METHODS = setOf("getConstructor", "getDeclaredConstructor") } } diff --git a/deob/src/main/java/dev/openrs2/deob/transform/OverrideTransformer.kt b/deob/src/main/java/dev/openrs2/deob/transform/OverrideTransformer.kt index bab4cb73ab..4717da438b 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/OverrideTransformer.kt +++ b/deob/src/main/java/dev/openrs2/deob/transform/OverrideTransformer.kt @@ -50,7 +50,7 @@ class OverrideTransformer : Transformer() { } companion object { - val logger = InlineLogger() - val OVERRIDE_DESC: String = Type.getDescriptor(Override::class.java) + private val logger = InlineLogger() + private val OVERRIDE_DESC: String = Type.getDescriptor(Override::class.java) } }