From beff9782a80af51eff695c40ee978f6e92dd323d Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 4 Jul 2016 12:25:53 +0300 Subject: [PATCH] Cleanup (minor optimization) --- .../openapi/components/impl/stores/StoreUtil.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StoreUtil.java b/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StoreUtil.java index 4fd37486ca51..623b1bb889ce 100644 --- a/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StoreUtil.java +++ b/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StoreUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,11 +40,11 @@ import org.jetbrains.annotations.Nullable; public final class StoreUtil { private static final Logger LOG = Logger.getInstance(StoreUtil.class); - private StoreUtil() { - } + private StoreUtil() { } public static void save(@NotNull IComponentStore stateStore, @Nullable Project project) { - ShutDownTracker.getInstance().registerStopperThread(Thread.currentThread()); + Thread currentThread = Thread.currentThread(); + ShutDownTracker.getInstance().registerStopperThread(currentThread); try { stateStore.save(new SmartList>()); } @@ -77,7 +77,7 @@ public final class StoreUtil { } } finally { - ShutDownTracker.getInstance().unregisterStopperThread(Thread.currentThread()); + ShutDownTracker.getInstance().unregisterStopperThread(currentThread); } }