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 94c27a64..b135e670 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 788b0a43..4037de9d 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 04f1f185..25e7cd24 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 bab4cb73..4717da43 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) } }