From 74e54939da88fe98057fe9331ebd7595227ccfc6 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 18 Mar 2015 15:11:08 +0300 Subject: [PATCH] Softwrap model memleak --- .../intellij/openapi/editor/impl/SoftWrapModelImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/SoftWrapModelImpl.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/SoftWrapModelImpl.java index e234be4f0b2a..b8dd4baf2551 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/SoftWrapModelImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/SoftWrapModelImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 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. @@ -62,7 +62,7 @@ public class SoftWrapModelImpl implements SoftWrapModelEx, PrioritizedDocumentLi /** * Holds name of JVM property which presence should trigger debug-aware soft wraps processing. */ - public static final String DEBUG_PROPERTY_NAME = "idea.editor.wrap.soft.debug"; + private static final String DEBUG_PROPERTY_NAME = "idea.editor.wrap.soft.debug"; private static final Logger LOG = Logger.getInstance("#" + SoftWrapModelImpl.class.getName()); @@ -153,7 +153,7 @@ public class SoftWrapModelImpl implements SoftWrapModelEx, PrioritizedDocumentLi myUseSoftWraps = areSoftWrapsEnabledInEditor(); myEditor.getColorsScheme().getFontPreferences().copyTo(myFontPreferences); - editor.addPropertyChangeListener(this); + editor.addPropertyChangeListener(this, this); myApplianceManager.addListener(myDataMapper); } @@ -789,7 +789,7 @@ public class SoftWrapModelImpl implements SoftWrapModelEx, PrioritizedDocumentLi private class LogicalToVisualTask implements SoftWrapAwareTask { public LogicalPosition input; - public VisualPosition defaultOutput; + private VisualPosition defaultOutput; public VisualPosition output; @Override