mirror of
https://github.com/lightbend/config.git
synced 2025-03-22 07:10:23 +08:00
make some classes final that can be
This commit is contained in:
parent
ae2cd72eed
commit
b726948e4f
@ -5,7 +5,7 @@ import com.typesafe.config.ConfigValue;
|
|||||||
|
|
||||||
abstract class AbstractConfigValue implements ConfigValue {
|
abstract class AbstractConfigValue implements ConfigValue {
|
||||||
|
|
||||||
private ConfigOrigin origin;
|
final private ConfigOrigin origin;
|
||||||
|
|
||||||
AbstractConfigValue(ConfigOrigin origin) {
|
AbstractConfigValue(ConfigOrigin origin) {
|
||||||
this.origin = origin;
|
this.origin = origin;
|
||||||
|
@ -5,7 +5,7 @@ import com.typesafe.config.ConfigValueType;
|
|||||||
/**
|
/**
|
||||||
* Default automatic type transformations.
|
* Default automatic type transformations.
|
||||||
*/
|
*/
|
||||||
class DefaultTransformer implements ConfigTransformer {
|
final class DefaultTransformer implements ConfigTransformer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbstractConfigValue transform(AbstractConfigValue value,
|
public AbstractConfigValue transform(AbstractConfigValue value,
|
||||||
|
@ -15,7 +15,7 @@ import com.typesafe.config.ConfigObject;
|
|||||||
import com.typesafe.config.ConfigOrigin;
|
import com.typesafe.config.ConfigOrigin;
|
||||||
import com.typesafe.config.ConfigValue;
|
import com.typesafe.config.ConfigValue;
|
||||||
|
|
||||||
class SimpleConfigObject extends AbstractConfigObject {
|
final class SimpleConfigObject extends AbstractConfigObject {
|
||||||
|
|
||||||
// this map should never be modified - assume immutable
|
// this map should never be modified - assume immutable
|
||||||
final private Map<String, AbstractConfigValue> value;
|
final private Map<String, AbstractConfigValue> value;
|
||||||
|
@ -6,7 +6,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.typesafe.config.ConfigValue;
|
import com.typesafe.config.ConfigValue;
|
||||||
|
|
||||||
class TransformedConfigObject extends AbstractConfigObject {
|
final class TransformedConfigObject extends AbstractConfigObject {
|
||||||
|
|
||||||
final private AbstractConfigObject underlying;
|
final private AbstractConfigObject underlying;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user