From 3ecb422e5e816f2a5a758fdf98017c0d9f13aef2 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 31 Jul 2018 19:39:53 +0200 Subject: [PATCH] =?UTF-8?q?VcsContentAnnotationSettings=20=E2=80=94=20do?= =?UTF-8?q?=20not=20store=20defaults?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VcsContentAnnotationSettings.java | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/contentAnnotation/VcsContentAnnotationSettings.java b/platform/vcs-api/src/com/intellij/openapi/vcs/contentAnnotation/VcsContentAnnotationSettings.java index 83dac7a4b3e3..5c3ef7a2e2a8 100644 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/contentAnnotation/VcsContentAnnotationSettings.java +++ b/platform/vcs-api/src/com/intellij/openapi/vcs/contentAnnotation/VcsContentAnnotationSettings.java @@ -7,30 +7,20 @@ import org.jetbrains.annotations.NotNull; import java.util.concurrent.TimeUnit; -/** - * @author Irina.Chernushina - * @since 3.08.2011 - */ -@State( - name = "VcsContentAnnotationSettings", - storages = {@Storage(StoragePathMacros.WORKSPACE_FILE)} -) +@State(name = "VcsContentAnnotationSettings", storages = @Storage(StoragePathMacros.WORKSPACE_FILE)) public class VcsContentAnnotationSettings implements PersistentStateComponent { - public static final int ourMaxDays = 31; // approx - public static final long ourAbsoluteLimit = TimeUnit.DAYS.toMillis(ourMaxDays); + static final int ourMaxDays = 31; // approx + static final long ourAbsoluteLimit = TimeUnit.DAYS.toMillis(ourMaxDays); private State myState = new State(); - { - myState.myLimit = ourAbsoluteLimit; - } public static VcsContentAnnotationSettings getInstance(final Project project) { return ServiceManager.getService(project, VcsContentAnnotationSettings.class); } - - public static class State { + + final static class State { public boolean myShow1; - public long myLimit; + public long myLimit = ourAbsoluteLimit; } @Override